【问题标题】:HTML5 Video Live Stream Oper TV EmulatorHTML5 视频直播操作电视模拟器
【发布时间】:2014-06-01 13:11:27
【问题描述】:

我想使用 HTML5 流式传输实时视频。到目前为止我已经尝试过

<!DOCTYPE html>
<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>

  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png"
      data-setup="{}">
    <source src="http://my stream url .m3u8" />
       <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
  </video>

</body>
</html>

它在 Opera TV Emulator 中不起作用。当我用一些 mp4 视频文件替换 url 时,它可以工作。

如何在 Opera TV Emulator 中加载视频?

注意:以上代码仅适用于 Safari 浏览器。不在 chrome、firefox 等上。

【问题讨论】:

    标签: video-streaming html5-video opera live-streaming television


    【解决方案1】:

    Opera TV Emulator 可能不支持 m3u8。或者您的 m3u8 流需要一些模拟器没有的 DRM。

    【讨论】:

    猜你喜欢
    • 2015-03-26
    • 1970-01-01
    • 1970-01-01
    • 2015-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-08
    • 1970-01-01
    相关资源
    最近更新 更多