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

Hi @Ryan
Thanks for your question.
WebRTC Adaptor does not have the ability to play VoD files. You can just play the VoD with embedded play.html (videojs player) or directly using mp4 URL.

Regards,
Yash

Link to comment
Share on other sites

  • 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...