<img src="https://img.shields.io/badge/%20-ENTERPRISE-%23B10031" style="float:left"/><br />

If you plan to use Chromecast to cast content that has DRM content protection enabled, a <a href="/platform/reference/studio-drm-standalone-chromecast" target="_blank">custom receiver</a> must be used.
<br />
Use the following steps to generate a signed content URL for DRM playback:
<a name="media_id"></a>Retrieve the JW Player content URL. JW Player content URLs have the following format: `
https://cdn.jwplayer.com/v2/media/{media_id}
`.Approach Notes **API** Use the following steps to retrieve the ` media_id
` for the URL:<br /><br />• Make a <a href="/platform/reference/get_v2-sites-site-id-media" target="_blank">GET v2/sites/{sites_id}/media/</a> call.<br />• Locate the key for a content item in the API response.**Dashboard** Use the following step to retrieve the media_id for the URL:<br /><br />From your <a href="https://dashboard.jwplayer.com/p/media" target="_blank">JW Player dashboard Media Library</a>, copy the media ID from the **MEDIA ID** column.
<br />
<a name="policy_id"></a>Retrieve the JW DRM policy ID: a. From the <a href="https://dashboard.jwplayer.com/#/account/properties" target="_blank">Properties page</a>, click the property name **> Content Protections**. b. In the **Digital Rights Management** section, copy the DRM policy ID from the **DRM Policies** table.

Read <a href="/platform/docs/protection-studio-drm-with-jw-platform-policy-reference" target="_blank">Studio DRM with JW Platform Policy Reference</a> to learn more about the DRM Policies.
<br />
Append the DRM Policy ID to the content URL.

<br />
Sign the content URL by appending a <a href="https://developer.jwplayer.com/jwplayer/docs/protect-your-content-with-signed-urls#section-create-a-signed-jwt-url" target="_blank">JWT signature</a>. **We strongly recommend using a proxy service to generate JSON web tokens (JWTs).** If you generate JWTs within client-side JavaScript or a native app, you risk exposing your API secret.

<br />
Pass the content URL to a <a href="/platform/docs/protection-studio-drm-integrations">player or implementation</a>.
<br /> <hr />
## Sample Code
The following code sample can be used as the foundation for your DRM implementation.
<br />
<!-- Removes the automatic page-to-page navigation at the bottom of the page -->
<style> .rm-Pagination { display: none; } </style>