Created
June 26, 2022 14:27
-
-
Save halilozel1903/6c9f598b7977566870a19d14f6f268c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val dashMediaSource = | |
DashMediaSource.Factory(dashChunkSourceFactory, manifestDataSourceFactory) | |
.createMediaSource( | |
MediaItem.Builder() | |
.setUri(Uri.parse(url)) | |
// DRM Configuration | |
.setDrmConfiguration( | |
MediaItem.DrmConfiguration.Builder(drmSchemeUuid) | |
.setLicenseUri(drmLicenseUrl).build() | |
) | |
.setMimeType(MimeTypes.APPLICATION_MPD) | |
.setTag(null) | |
.build() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment