Jump to content
  • 0

Play recorded MP4 without live stream?


Ryan
 Share

Question

Hello,
Is there any way of playing a recorded VOD using the JavaScript SDK without having an active live stream?
I've attempted to do this through the player.html using "isPlayMode: true" but it seems this requires a stream to be actively running as I get an error saying "no stream exists".
I can access the mp4 file using a direct url like http://<SERVER_NAME>:5080/WebRTCAppEE/streams/<STREAM_ID>.mp4 but this does not have status callbacks that I'd require which exist with the WebRTCAdaptor to know when the player has started, or ended the playback of the recorded file.

If this can't be done through the WebRTCAdaptor, do you have any suggestions on how I could best accomplish this?

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 1
On 7/21/2022 at 12:44 AM, Ryan said:

Hello,
Is there any way of playing a recorded VOD using the JavaScript SDK without having an active live stream?
I've attempted to do this through the player.html using "isPlayMode: true" but it seems this requires a stream to be actively running as I get an error saying "no stream exists".
I can access the mp4 file using a direct url like http://<SERVER_NAME>:5080/WebRTCAppEE/streams/<STREAM_ID>.mp4 but this does not have status callbacks that I'd require which exist with the WebRTCAdaptor to know when the player has started, or ended the playback of the recorded file.

If this can't be done through the WebRTCAdaptor, do you have any suggestions on how I could best accomplish this?

Ideal methods to play VOD files is via pseudo streaming or HLS. Pseudo streaming / Progressive download is something used by popular streaming websites. Luckily HTML5 makes is very easy for you to pseudo stream MP4 files with WebM fallback. the other option is to convert MP4 to HLS vod files and make them available for playback either via simple webserver of via streaming server capable of HLS VOD playback.

Link to comment
Share on other sites

 Share

×
×
  • Create New...