Skip to content

Instantly share code, notes, and snippets.

@halilozel1903
Created June 26, 2022 14:27
Show Gist options
  • Save halilozel1903/6c9f598b7977566870a19d14f6f268c8 to your computer and use it in GitHub Desktop.
Save halilozel1903/6c9f598b7977566870a19d14f6f268c8 to your computer and use it in GitHub Desktop.
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