Is it possible to omit “/vod” in the middle of the uri when you want to play the stream made thru generateLazyPull ?
1. edit config.lua: hasStreamAliases=true,
2. set a LazyPull with sample uri
generateLazyPullFile uri=rtmp://s2pchzxmtymn2k.cloudfront.net/cfx/st/mp4:sintel.mp4 pathToFile=../media/proxyStream-0-0-10
3. maka an alias for the LazyPull (in order to avoid .vod extension)
addStreamAlias localstreamname=proxyStream-0-0-10.vod aliasName=stream-0-10 expirePeriod=0
4. check on VLC
rtsp://localhost:5544/vod/stream-0-10
2. set a LazyPull with sample uri
generateLazyPullFile uri=rtmp://s2pchzxmtymn2k.cloudfront.net/cfx/st/mp4:sintel.mp4 pathToFile=../media/proxyStream-0-0-10
3. maka an alias for the LazyPull (in order to avoid .vod extension)
addStreamAlias localstreamname=proxyStream-0-0-10.vod aliasName=stream-0-10 expirePeriod=0
4. check on VLC
rtsp://localhost:5544/vod/stream-0-10
4 Answers
Hi Masashi,
If you use RTMP playback, the following playback URL’s are valid:
> rtmp://localhost/er/stream-0-10
> rtmp://localhost/live/stream-0-10
> rtmp://localhost/vod/stream-0-10
The middle part of the URL is defined in config.lua under applications > aliases.
Currently, the default values are “er”, “live”, and “vod”.
You can modify the aliases in config.lua then restart the EMS.
However, for RTSP, you can only use the following playback URL:
> rtsp://localhost:5544/vod/stream-0-10
Cheers,
Don
Is there anyway to omit those /er/, /live/, /vod/ Do you have to have one of them anyway ?
Hi masashi,
As said above, “You can modify the aliases in config.lua then restart the EMS.”
You can just modify this part in the configuration: aliases={“er”, “live”, “vod”}, but you cannot remove/disable this.
Thank you!