1

我下载了视频 js 并将源更改为我的本地视频,它可以在 ie 和 waterfox 上运行,但不能在 chrome 中持续加载。我使用 mp4 和 ogv 作为视频类型,当我访问视频 js 网站时,我注意到了这个问题。主页视频连续加载而不播放。但是其他浏览器没问题我该如何解决这个问题

这是我的代码

<html>
<head>
<title>Video.js | HTML5 Video Player</title>

<!-- Chang URLs to wherever Video.js files will be hosted -->
<link href="video-js.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="video.js"></script>

<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
<script>
videojs.options.flash.swf = "video-js.swf";
</script>


</head>
<body>

  data-setup="{}">
<source src="videos/video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' </source>
<source src="videos/video.ogv" type='video/ogg; codecs="theora, vorbis"'></source> 

<track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->

4

0 回答 0