Wowza Community

how to add username and password in HLS playback, or RTMP playback

Hi,

How do I define a username and password, like user1 and pass1, and in the HLS playback, it must include the username and password like this

http://IP:1935/live/abcde/playlist.m3u8?user=user1&pass=pass1

is there any built-in module to do that?

Thanks

Chuck

Hi there,

Please take a look at this example:

How to do file-based authentication with RTMP client and credentials in querystring of the RTMP URL (ModuleOnConnectAuthenticate2)

I hope this helps.

Salvadore

Hi,

Can I do this with HLS streaming? I actually will only use for HLS, not RTMP. Thanks

There is nothing built in that provides this functionality for HLS streams.

You would need to develop a custom module. A good starting place would be:

How to limit playback by IP address (ModuleOverridePlayRestrictIP)

Alternatively, this guide provides other methods for encrypting HLS streams:

How to secure Apple HLS streaming using DRM encryption

Salvadore