I have placed a MP4 file (content.mp4) in the folder “media” of an EvoStream Media Server. And, the server has Stream Aliases enabled.
First, I issue the following command to the server:
addStreamAlias localStreamName=content.mp4 aliasName=ContentAlias expirePeriod=0
Then, I issue the following command to the server:
pullstream uri=rtmp://127.0.0.1/vod/ContentAlias keepAlive=1 localStreamName=ContentLive
Finally, I issue the following command to the server:
addStreamAlias localStreamName=ContentLive aliasName=ContentLiveAlias
However, when I try to play the MP4 file with the following URI
although the MP4 file can be played, the beginning of the file is skipped.
Any idea in start playing the MP4 file from its beginning.
May be, I would like to revise my question as follows.
I want to play a MP4 file stored in the “media” folder using WebSockets with the HTML5 web player of EMS (http://docs.evostream.com/2.0/html5players_wsdemo.html). Any idea in doing so?
(The idea of my approach as mentioned in the original question comes from “HLS VOD Work Around” in the web page http://docs.evostream.com/2.0/userguide_videoondemand.html.)
Hi stephenlai ,
Apologies for the late response.
As mentioned in the documentation, you can only play the following in Websockets:
- Pulled RTMP/RTSP streams
- Lazy pulled streams (filename.vod)
- Playlist files (filename.lst)
Direct playback of MP4 file in websockets is not yet supported in release 2.0.
Hope this helps!