如何从videojs删除冗余组件

时间:2019-12-16 03:21:06

标签: javascript html video.js

我想在我的网络中使用videojs,但是有许多意外情况。有人能帮我吗? 如图所示 enter image description here

相关代码段:

<!DOCTYPE html>
<html>

<head>
    <script src="https://vjs.zencdn.net/7.5.5/video.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js">
    </script>
</head>

<body>
    <div style="background: #000000; height:500px;">
        <video id="my_video" 
               class="video-js" 
               controls 
               preload="auto" 
               width="100%" 
               height="100%" 
               data-setup="{}" 
               style="margin:0 auto; padding: 0 auto;">
            <source id="video_src" src="${sessionScope.currentLesson.getVideo_path() }" type="video/mp4" />
        </video>
    </div>
</body>

2 个答案:

答案 0 :(得分:0)

使用此代码

<!DOCTYPE html> 
<html> 

<head>
  <link href="https://vjs.zencdn.net/7.5.5/video-js.css" rel="stylesheet" />
  <script src="https://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>

<body>
  <video
    id="my-video"
    class="video-js"
    controls
    preload="auto"
    width="640"
    height="264"
    poster="MY_VIDEO_POSTER.jpg"
    data-setup="{}"
  >
    <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4" />
  </video>

  <script src="https://vjs.zencdn.net/7.5.5/video.js"></script>
</body>
</html>

答案 1 :(得分:0)

这来晚了,但为了任何其他遇到这种情况的人,您需要做的就是

lmout
# A tibble: 24 x 6
   categ term                estimate std.error statistic  p.value
   <chr> <chr>                  <dbl>     <dbl>     <dbl>    <dbl>
 1 1     as.factor(period)1     0.365    0.223      1.63  0.153   
 2 1     as.factor(period)2     0.6      0.316      1.90  0.106   
 3 1     as.factor(period)8     0.62     0.223      2.78  0.0321  
 4 1     as.factor(period)9     0.1      0.316      0.317 0.762   
 5 1     as.factor(period)11    0.37     0.316      1.17  0.286   
 6 1     as.factor(period)12    0.412    0.141      2.92  0.0267  
 7 2     as.factor(period)1     0.54     0.0789     6.85  0.000478
 8 2     as.factor(period)2     0.63     0.112      5.65  0.00132 
 9 2     as.factor(period)8     0.27     0.0789     3.42  0.0141  
10 2     as.factor(period)9     0.18     0.112      1.61  0.158   
# … with 14 more rows