Wowza Community

Authentication to WebRTC Application in Wowza

Hi,

I would like to access a video stream with WebRTC over TCP.
I setup the Server with this tutorial and it works pretty good: https://www.wowza.com/docs/how-to-use-webrtc-with-wowza-streaming-engine

Now, I would like to enable authentication for this: I enabled playback security with “Protect all protocols using hash”.
Unfortunately, I can still access the WebRTC stream without any authentication.

Additionally, I updated the playback security to block all requests except those coming from localhost.
Even then, I can still access the stream from a remote host without authentication.

I couldn’t find any ressources on how to setup security for WebRTC in Wowza in the official documentation.

Can you tell me how to enable authentication for this and whether there is some kind of documentation on how to achieve this?

Thank you very much in advance!

Hi Lukas,

Thank you for reaching out on the Wowza Community Forum. There’s no out-of-the-box solution for access authentication to streams. That being said, we have some examples of using the Java API to control access to streams.

For WebRTC, you’d need our article on Controlling Access to RTP/RTSP streams. The article shows how to use the Java API to pull authorization credentials from a playback request query string.

Your development team will need to do the lifting on getting the playback client to send the required authorization credentials, and writing the logic to handle the credentials once they’ve been parsed.

If you’d like to work with Wowza Professional Services to get this implemented, please let us know and I’ll be happy to forward your information to them.

Regards,
Taylor Zahora | Wowza | Technical Support Engineer