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
I created a simple module following https://www.wowza.com/docs/how-to-control-access-to-rtsp-rtp-streams that just logs the user agent / query strings and instead always performs a rtpSession.acceptSession()
; The module is installed in the /lib folder with permissions set accordingly.
Adding the module to an Application prevents publishing from working, but there are no errors in the logs. On removing the module, publishing works as expected. None of the output logged from the module shows up in the logs either.
Hello and welcome to the forums @Taurai_Muchinesu_Ben ! This question is not directly related to helping the person in the original post, so you will need to ask it in a new post next time please.
I can let you know though that this would require a lot for more information for us to troubleshoot and you’ll need to send a support ticket. That way we can fully review what you are trying to accomplish in your configuration files for Engine. We do not debug in the forums or review code/logs- we only provide guidance and general examples.
You can send your ticket here please: