Wowza Community

How to restrict access to video by url pattern

Hi,

Assume we have

This url has private access (restrict video!)

rtmp://somehost/live/definst/PRIVATE/myStream.stream

This url has public access (allow video!)

rtmp://somehost/live/definst/PUBLIC/myStream.stream

How could it be done?

Thanks,

any ideas appreciated

The “PRIVATE” and “PUBLIC” parts of your URLs are part of the stream name. So if it is just RTMP clients, you could use could override play to restrict playback as shown in this example. If other client types are involved you could use IMediaStreamNameAliasProvider2 to look at what play requests and block as necessary.

Richard

Hi,

IMediaStreamNameAliasProvider2 doesn’t work with stream files.

Answered here.

Roger.