> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-onclientmiddleware.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Widevine HTML5 integration

> This guide provides step-by-step instructions on integrating Widevine with HTML5 video players. Widevine ensures secure playback and decryption of encrypted videos through the configuration of license server URLs.

This guide walks through pointing common HTML5 video players at Bunny Stream's Widevine license server so encrypted videos play back securely in Chrome, Edge, Firefox, and other Widevine-capable browsers.

## What you'll need

Before you dive in, make sure you have the following prerequisites in place:

* A [bunny.net](https://bunny.net/) account ( [Log in](https://dash.bunny.net/auth/login?pk_buttonlocation=menu) or sign up for a [free trial](https://dash.bunny.net/auth/register)).
* Ensure that the Media Cage DRM Enterprise feature is enabled in your account. If you need guidance on how to enable this feature, please refer to our [Media Cage DRM Enterprise quickstart guide](/docs/mediacage-enterprise-drm-quickstart).

## Use license server URL with video players

To ensure the seamless playback of encrypted videos, it is crucial to configure the license server URL with your video players. The following section provides a code snippet for configuring license proxies with various widely used video players.

## Authentication

The license service endpoint employs referrer protection and embed token authentication to secure requests, similar to our player Embed View. That means if token authentication is enabled it should also be present in requests going to DRM license endpoint ( the same is for referrer protection and token authentication). These security rules ensure that only requests from authorized sources with valid tokens are processed if configured.

For the authentication to work, it has to be enabled in dashboard:

<img src="https://mintcdn.com/bunnynet-cb9733c2-onclientmiddleware/2Mg2JcbbdZZJ88ro/images/docs/e6ff6bd-image.png?fit=max&auto=format&n=2Mg2JcbbdZZJ88ro&q=85&s=2caf3e6f0288d9d23221188f688c9ca0" alt="" width="1232" height="392" data-path="images/docs/e6ff6bd-image.png" />

For more detailed guidance on these security mechanisms, please visit our [Embed View Token Authentication page](/docs/stream-embed-token-authentication).
