getDRMConfiguration function

BetterPlayerDrmConfiguration? getDRMConfiguration(
  1. Asset asset
)

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;
}