Skip to content
Last updated

DRM-protected media

If you wish to prepare the player with an ExternalMedia that has DRM-protected content, then you should provide a DrmConfig when you initialize your media instance:

val drmConfig = DrmConfig(DrmConfig.Scheme.WIDEVINE, "https://link.to.a.drm.license")
val externalMedia = ExternalMedia("https://link.to.a.media.file", drmConfig)
flowplayerView.prepare(externalMedia, true)

The Wowza Flowplayer Android SDK is based on ExoPlayer which in turn uses Android's MediaDrm API to support DRM-protected playbacks. The minimum Android versions required for different supported DRM schemes, along with the streaming formats for which they're supported, are listed below.

DRM schemeAndroid version numberAndroid API leveAndroid API levelSupported formats
Widevine "cenc"4.419DASH, HLS (FMP4 only)
Widevine "cbcs", "cbc1" and "cens"7.125DASH, HLS (FMP4 only)
ClearKey5.021DASH
PlayReady SL2000AndroidTVAndroidTVDASH, SmoothStreaming, HLS (FMP4 only)