Cannot play a media file from the beginning

Cannot play a media file from the beginning

Support ForumCategory: Usage and FeaturesCannot play a media file from the beginning
stephenlai asked 6 years ago
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
expirePeriod=0 However, when I try to play the MP4 file with the following URI rtmp://<SERVER_ADDRESS>/live/ContentLiveAlias 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.  



2 Answers
stephenlai answered 6 years ago
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.)
erika Staff answered 6 years ago
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!

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.