How to play the Red5pro recorded video in html5?

116 views
Skip to first unread message

harikrishnan ℛ

unread,
Nov 16, 2016, 10:36:10 AM11/16/16
to red5

I am trying to play the recorded video from Red5 pro video using the html 5 controls.

I managed to do the live streaming with .m3u8 extension and i can't play the videos already recorded [Video On Demand (VOD)].

I use the video js player for playing live stream ,but the same code is not working for recorded videos.


<video id=red5pro-video width=600 height=300 class="video-js vjs-default-skin" controls></video>

<script src="http://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="videojs/video.min.js"></script>
<script src="videojs/videojs-media-sources.min.js"></script>
<script src="videojs/videojs.hls.min.js"></script>
<!-- Red5 Pro SDK -->
<script src="red5pro/red5pro-sdk.min.js"></script>
<script src="script/hls-metadata.js"></script>

<script>
(function () {
var player = videojs('red5pro-video');
player.src({
src: "http://54.255.142.187:5080/live/kris.m3u8", 
type: "application/x-mpegURL",
useCueTags: true
});
window.onOrientation(player, 'red5pro-video');
player.play();
})();
</script>

Octavian Naicu

unread,
Nov 17, 2016, 5:01:58 AM11/17/16
to red5in...@googlegroups.com
You can convert the recorded videos from .flv to .mp4 and play them directly using the HTML video tag


Octavian Naicu

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages