Andrei Varanovich
Andrei Varanovich

Reputation: 502

HTTP Dynamic Streaming with video.js flash fallback

I am evaluating video.js flash fallback capabilities for live streaming. I can stream using either RTMP or Adobe HTTP Dynamic Streaming.

Hovewer, nonne of the options seems to be supported,

here is my demo set up

  <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://mysite.com:1935/live/android.stream/manifest.f4m" type="video/mp4" />  
   <source src="rtmp://mysite.com/live" type="video/mp4" />
   <source src="http://mysite.com:1935/live/android.stream/playlist.m3u8" type='video/mp4' />

here is what I see in the firebug console

Specified "type" attribute of "video/mp4" is not supported. Load of media resource http://mysite.com:1935/live/android.stream/manifest.f4m failed.

Specified "type" attribute of "video/mp4" is not supported. Load of media resource rtmp://mysite.com/live failed.

Upvotes: 3

Views: 6446

Answers (2)

Dennington-bear
Dennington-bear

Reputation: 1782

Rtmp is now supported in video.js an example can be seen by using there already packaged file or this:

<!DOCTYPE html>
<html>
<head>
  <title>Video.js</title>


  <link href="video-js.css" rel="stylesheet" type="text/css">
  <script src="video.js"></script>
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>


</head>
<body>

<video id="my_video_1" class="video-js vjs-default-skin" controls
  preload="auto" width="640" height="264" data-setup='{ "techOrder": ["flash"] }'>
  <!-- Stream testing -->
  <source src="rtmp://rtmp.jim.stream.vmmacdn.be/vmma-jim-rtmplive-live/jim" type='rtmp/mp4'>
</video>

      <p>Source from: <a href="http://support.akamai.com/flash/">http://support.akamai.com/flash/</a></p>
</body>
</html>  

Hope this helps anyone currently stuck I know this has been dead for awhile.

Upvotes: 1

Marko Ristic
Marko Ristic

Reputation: 11

I went through the source code of the video.js (both JavaScript and ActionScript) and couldn't find any support for manifest files. That is a feature I would also like to see...

Upvotes: 1

Related Questions