Is it possible to omit “/vod” in the middle of the uri when you want to play the stream made thru generateLazyPull ?

Is it possible to omit “/vod” in the middle of the uri when you want to play the stream made thru generateLazyPull ?

Support ForumCategory: Usage and FeaturesIs it possible to omit “/vod” in the middle of the uri when you want to play the stream made thru generateLazyPull ?
masashi asked 7 years ago
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



4 Answers
Don answered 7 years ago
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
masashi answered 7 years ago
Is there anyway to omit those /er/, /live/, /vod/  Do you have to have one of them anyway ? 
erika Staff answered 7 years ago
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!
masashi answered 7 years ago
Thank you Don and erika for clarification.

Offcanvas

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