Wowza Community

Distinguish between playback and pushing - auth

Hi,

I’m trying to build a module to distinguish between the playback and pushing of stream to be able to implant a custom authentication where the login information is provided

via the url parameters ex. rtmp://domain.com/app/stream?user=Anna&pass=1234, but i want to do that only to the “pushing of stream” so the playback don’t need auth. Can

somone please tell me how to do that? and maybe show me if possible. I tried to do that in ModuleBase Class inside that onConnect method, but that required auth on playback

and publish…

Hi,

You should be able to implement the IMediaStreamActionNotify3 interface and add your code to the onPlay and onPublish events.

Michelle