Cannot play a media file from the beginning

Support ForumCategory: Usage and FeaturesCannot play a media file from the beginning
stephenlai Member asked 2 months 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 Member answered 2 months 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 Evostream-Staff answered 2 months 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!