getDRMConfiguration function
Implementation
BetterPlayerDrmConfiguration? getDRMConfiguration(Asset asset) {
if (asset.video.drmEnabled) {
return BetterPlayerDrmConfiguration(
drmType: Platform.isAndroid
? BetterPlayerDrmType.widevine
: BetterPlayerDrmType.fairplay,
licenseUrl: asset.licenseURL,
certificateUrl: asset.certificateURL);
}
return null;
}