Closed FranEspino closed 2 years ago
Your manifest doesn't have a ContentProtection
node with the Clear Key DASH-IF
UUID.
The kid
value in your JSON string doesn't match the default_KID
value in your manifest (converting the hex default_KID
to base64 gives z7XitzvvTzyHjyWrhqdFHw
).
Take a look at the example here, where the clearkey ContentProtection
nodes are present in the manifest and the default_KID
value matches the key ID used in the clearkey response (nrQFDeRLSAKTLifXUIPiZg
): https://reference.dashif.org/dash.js/latest/samples/drm/clearkey.html
I need some guidance, I have only worked with mpd or m3u8 files without encryption and exoplayer plays it without problems, I have been using the following tool https://developer-tools.jwplayer.com/stream-tester Doing a test with the following url: https://dce-fs-live-dazn-cdn.dazn.com/dashdrm/dazn-linear-017/stream.mpd ClearKey Key: 0d6712bf2a84edcc93d001a9613f6fec ClearKey Key ID: cfb5e2b73bef4f3c878f25ab86a7451f Now I need to play it in android studio, where should I add ContentProtection?
Could you please provide me with a complete android studio example, these are the exoplayer versions I am using:
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.18.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.18.1'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.18.1'
implementation 'com.google.android.exoplayer:extension-okhttp:2.18.1'
implementation 'com.google.android.exoplayer:extension-mediasession:2.18.1'
It looks like you've converted 0d6712bf2a84edcc93d001a9613f6fec
and cfb5e2b73bef4f3c878f25ab86a7451f
into base64 by interpreting them as ASCII strings, not hex strings (maybe using a converter like https://www.base64encode.org/). I suspect this isn't correct, and that they should be considered to be hex strings.
Try a converter that will interpret the input as a hex string, e.g. https://base64.guru/converter/encode/hex
And then use the output of that in your JSON response.
Thanks, It work!!
ExoPlayer Version
2.18.1
Devices that reproduce the issue
.
Devices that do not reproduce the issue
.
Reproducible in the demo app?
No
Reproduction steps
Expected result
/
Actual result
Media
/
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.