diff --git a/library/src/main/java/com/mux/player/MuxPlayer.kt b/library/src/main/java/com/mux/player/MuxPlayer.kt index 6cea833..ab1571f 100644 --- a/library/src/main/java/com/mux/player/MuxPlayer.kt +++ b/library/src/main/java/com/mux/player/MuxPlayer.kt @@ -73,11 +73,12 @@ class MuxPlayer private constructor( override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) { // Check if a DRM token is set, set View Drm Type if it is // TODO: escape hatch TBA - CustomerViewData viewData = CustomerViewData() - // Assumes only widevine DRM playback is supported - // If playready support is added in future, update to select between widevine and playready - viewData.viewDrmType = "widevine" // TODO: make this a constant if (mediaItem.requestMetadata.extras.getString(Constants.BUNDLE_DRM_TOKEN)) { + CustomerViewData viewData = CustomerViewData() + // Assumes only widevine DRM playback is supported + // If playready support is added in future, update to select between widevine and playready + viewData.viewDrmType = "widevine" // TODO: make this a constant + // TODO: Confirm this doesn't overwrite other keys like view session ID to null muxStats?.updateCustomerData( null, null, viewData