diff --git a/library/src/main/java/com/potyvideo/library/AndExoPlayerView.kt b/library/src/main/java/com/potyvideo/library/AndExoPlayerView.kt index 4ddfd47..280a536 100644 --- a/library/src/main/java/com/potyvideo/library/AndExoPlayerView.kt +++ b/library/src/main/java/com/potyvideo/library/AndExoPlayerView.kt @@ -220,7 +220,7 @@ class AndExoPlayerView( return MediaItem.Builder() .setUri(source) .setMimeType(MimeTypes.APPLICATION_MP4) - .setDrmLicenseRequestHeaders(extraHeaders) + .setLicenseRequestHeaders(extraHeaders) .build() } @@ -228,7 +228,7 @@ class AndExoPlayerView( return MediaItem.Builder() .setUri(source) .setMimeType(MimeTypes.APPLICATION_M3U8) - .setDrmLicenseRequestHeaders(extraHeaders) + .setLicenseRequestHeaders(extraHeaders) .build() } @@ -236,14 +236,14 @@ class AndExoPlayerView( return MediaItem.Builder() .setUri(source) .setMimeType(MimeTypes.APPLICATION_MPD) - .setDrmLicenseRequestHeaders(extraHeaders) + .setLicenseRequestHeaders(extraHeaders) .build() } private fun buildMediaGlobal(source: String, extraHeaders: HashMap): MediaItem { return MediaItem.Builder() .setUri(source) - .setDrmLicenseRequestHeaders(extraHeaders) + .setLicenseRequestHeaders(extraHeaders) .build() } @@ -449,4 +449,4 @@ class AndExoPlayerView( } } -} \ No newline at end of file +}