Player Setup for DRM

Setup your player to use Gumlet license severs.

📘

You don't need this if you are using Gumlet embed player SDK or Gumlet iFrame. These steps are in-built in Gumlet iFrame.

If you are using your own player to play Gumlet DRM-encrypted content, you need to pass the License Server URL and Certificate URL (FairPlay) to your player. Please check the guide License Server Setup to know how to generate those URLs.

Here are some useful links on how to set up DRM with different players.

Shaka Player (Web)

We recommend you use Shaka Player if you are playing DRM-encrypted videos on browsers.

// // Obtain these URLs from the guide License Server Setup guide.
const widevineServer = 'https://widevine.gumlet.com/licence/<ORG_ID>/.....'
const fairplayServer = 'https://fairplay.gumlet.com/licence/<ORG_ID>/.....'
const fairplayCertUrl = 'https://fairplay.gumlet.com/certificate/<ORG_ID>'

shaka.polyfill.installAll();

player.configure({
  drm: {
    servers: {
			// Obtain this URL from the guide License Server Setup guide.
      'com.widevine.alpha': widevineServer,
			'com.apple.fps': fairplayServer
    },
    advanced: {
      'com.widevine.alpha': {
        'videoRobustness': ['HW_SECURE_ALL', 'SW_SECURE_CRYPTO'],
        'audioRobustness': ['HW_SECURE_ALL', 'SW_SECURE_CRYPTO']
      }
    }
  }
});

player.configure('drm.advanced.com\\.apple\\.fps.serverCertificateUri', fairplayCertUrl);

player.getNetworkingEngine()
    .registerRequestFilter(shaka.drm.FairPlay.gumletFairPlayRequest);
player.getNetworkingEngine()
    .registerResponseFilter(shaka.drm.FairPlay.commonFairPlayResponse);

iOS Native

We recommend you use our SDK for iOS to integrate DRM with your iOS native app. We have an entire guide on how to supply FairPlay license server available here: https://github.com/gumlet/ios-native-video-player

Additionally, if you can check Apple's own FairPlay documentation: https://developer.apple.com/streaming/fps/

Android Native

We recommend you use our SDK for Android to integrate DRM with your Android native app. We have an entire guide on how to supply Widevine license server available here: https://github.com/gumlet/android-native-video-player

A detailed guide on Media3 framework for Android shows how you can integrate DRM on your own: https://developer.android.com/jetpack/androidx/releases/media3

React native video

If you are using react-native-video package with your React app to play DRM videos, you can supply license server URLs by following this guide: https://docs.thewidlarzgroup.com/offline-video-sdk/docs/stream-downloader/config#drm-config

If you want full guides for React Native, they are available here

Widevine with React Native

FairPlay with React Native