Skip to main contentIBM Video Streaming Developers

Deprecated - Using viewer authentication with other services

Besides the player there are some services (such as Chat, Q&A and Combined Embed) that may also require viewer authentication. In order to make the authentication work across these services, additional steps need to be taken at the end of the authentication flow.

These services provide a URL, that must be used instead of the default pass url. This URL is sent in the hashConsumer query parameter by the service to the application.

Example url in the hashConsumer for chat:

Example script in native PHP that can authenticate the player and the services as well

// Given a json token has already been constructed
$json = json_encode($response);
// Default hash consumer for the player
$hashConsumer = '';
$query = [];
// Check if there is a special hash consumer
if (!empty($_GET['hashConsumer'])) {