Wowza Community

How to have a username and password authentication on the client side for live video

Can anyone help me for how to have a pop up username and password authentication technique before playing the video from the wowza server on the client side.

Hi,

This is possible but would only be supported with RTSP clients by default. To get this working RTMP or HTTP clients, it would require writing a custom player or plugin and some custom code in Wowza to trigger this authentication.

First you will need to add a new to the container in the [Wowza-Install]/conf/Authentication.xml file, an example can be found below called digestplay.

			<Method>
				<Name>digestplay</Name>
				<Description>Digest Authentication</Description>
				<Class>com.wowza.wms.authentication.AuthenticateDigest</Class>
				<Properties>
					<Property>
						<Name>passwordFile</Name>
						<Value>${com.wowza.wms.context.VHostConfigHome}/conf/play.password</Value>
					</Property>
					<Property>
						<Name>realm</Name>
						<Value>Streaming Server</Value>
					</Property>
				</Properties>
			</Method>

You based on the above, you will need to create a password file called play.password in the [Wowza-Install]/conf/ directory.

In the Application.xml file you will need to change the RTP/Authentication/PlayMethod from none to digestplay.

<PlayMethod>digestplay</PlayMethod>

After editing these files you will need to restart Wowza for the changes to take effect.

This can be tested with VLC player and should work assuming that the password file defined in the Method called digestplay exists.

Jason