Skip to content

Commit

Permalink
Merge pull request #76 from razarasool/patch-1
Browse files Browse the repository at this point in the history
Update AndExoPlayerView.kt
  • Loading branch information
HamidrezaAmz authored Apr 3, 2022
2 parents 5a4d4ea + 64d0793 commit e56dfe3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/src/main/java/com/potyvideo/library/AndExoPlayerView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -220,30 +220,30 @@ class AndExoPlayerView(
return MediaItem.Builder()
.setUri(source)
.setMimeType(MimeTypes.APPLICATION_MP4)
.setDrmLicenseRequestHeaders(extraHeaders)
.setLicenseRequestHeaders(extraHeaders)
.build()
}

private fun buildMediaHLS(source: String, extraHeaders: HashMap<String, String>): MediaItem {
return MediaItem.Builder()
.setUri(source)
.setMimeType(MimeTypes.APPLICATION_M3U8)
.setDrmLicenseRequestHeaders(extraHeaders)
.setLicenseRequestHeaders(extraHeaders)
.build()
}

private fun buildMediaDash(source: String, extraHeaders: HashMap<String, String>): MediaItem {
return MediaItem.Builder()
.setUri(source)
.setMimeType(MimeTypes.APPLICATION_MPD)
.setDrmLicenseRequestHeaders(extraHeaders)
.setLicenseRequestHeaders(extraHeaders)
.build()
}

private fun buildMediaGlobal(source: String, extraHeaders: HashMap<String, String>): MediaItem {
return MediaItem.Builder()
.setUri(source)
.setDrmLicenseRequestHeaders(extraHeaders)
.setLicenseRequestHeaders(extraHeaders)
.build()
}

Expand Down Expand Up @@ -449,4 +449,4 @@ class AndExoPlayerView(
}
}

}
}

0 comments on commit e56dfe3

Please sign in to comment.