Skip to content Skip to sidebar Skip to footer

Stream Video With Rtmp And Videojs

I looking for a way to stream play videos with rtmp. I use video-js but it doesn't work. Firebug return an error : L'attribut « type » spécifié sur « video/flash » n'est pas

Solution 1:

Use the type rtmp/mp4 in your source. Also, video.js uses an ampersand to separate the server URL and stream name. RTMP will only work where Flash is available of course.

<source src='rtmp://server.com/vod/&mp4:foo/bar/my_video.mp4' type='rtmp/mp4'/>

Solution 2:

You might want to ensure you are returning the correct content-type on the server. See: https://github.com/videojs/video.js/issues/1994


Post a Comment for "Stream Video With Rtmp And Videojs"