[object Object] Icon

Learn how to create, start, manage and modify Encodings

[object Object] Icon

Learn how to create, start, manage and modify Players

[object Object] Icon

Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Thu Sep 13 2018

How to setup Bitmovin Android SDKs with EZDRM content

OverviewLink Icon

Nearly every DRM license provider does have customized DRM workflow in place, which is different to the default approach, especially when it comes to Fairplay DRM. In order to support those custom requirements, each Bitmovin native SDK does support the same customizable callbacks as the HTML5 player, so you can adjust the DRM requests to the needs of your DRM provider accordingly.

If you are not yet familiar with the Bitmovin SDK, please see the related blog post and have a look at the demo applications available in our iOS sample applications or Android sample applications repository.

Android SDK (Java, Widevine DRM)Link Icon

This example is based on "BasicDRMPlayback" which is available in its sample application repository.

1protected void initializePlayer()
3 // Create a new source configuration
4 SourceConfiguration sourceConfiguration = new SourceConfiguration();
6 // Create a new source item
7 SourceItem sourceItem = new SourceItem("https://url/to/your/stream.mpd);
9 // setup DRM handling
10 String drmLicenseUrl = "http://widevine-dash.ezdrm.com/proxy?pX=EZDRM_ACCOUNT_ID";
11 UUID drmSchemeUuid = DRMSystems.WIDEVINE_UUID;
12 sourceItem.addDRMConfiguration(drmSchemeUuid, drmLicenseUrl);
14 // Add source item including DRM configuration to source configuration
15 sourceConfiguration.addSourceItem(sourceItem);
17 // load source using the created source configuration
18 this.bitmovinPlayer.load(sourceConfiguration);

Give us feedback