Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearkey multi session problem #4834

Closed
TadejZupancic opened this issue Sep 18, 2018 · 0 comments
Closed

Clearkey multi session problem #4834

TadejZupancic opened this issue Sep 18, 2018 · 0 comments
Assignees
Labels

Comments

@TadejZupancic
Copy link
Contributor

Before filing an issue:

  • Search existing issues, including issues that are closed.
  • Consult our FAQs, supported devices and supported formats pages. These can be
    found at https://google.github.io/ExoPlayer/.
  • Rule out issues in your own code. A good way to do this is to try and
    reproduce the issue in the ExoPlayer demo app.
  • This issue tracker is intended for bugs, feature requests and ExoPlayer
    specific questions. If you're asking a general Android development question,
    please do so on Stack Overflow.

When reporting a bug:

Fill out the sections below, leaving the headers but replacing the content. If
you're unable to provide certain information, please explain why in the relevant
section. We may close issues if they do not include sufficient information.

Issue description

I was trying to create a playlist of clearkey videos. I have my own local drm callback, that provides the right key. Single videos played fine. After creating a playlist, I noticed, that local drm callback is called only for the first video and the next ones try to use the same key, which does not work.

Then I've enabled multisession and the application crashed (android.media.MediaDrm$MediaDrmStateException: Failed to set property: Unsupported scheme or data format) at line:
mediaDrm.setPropertyString("sessionSharing", "enable"); in DefaultDrmSessionManager.java

If I comment that line out, everything works fine (drm callback is called for every video in the playlist).

Reproduction steps

Add this to the demo player medialist:
{
"name": "Clearkey",
"uri": "https://dileque.si/test/stream.mpd",
"drm_scheme": "clearkey",
"drm_multi_session": true
}

and set the drmCallback to:

LocalMediaDrmCallback drmCallback = new LocalMediaDrmCallback(
            ("{\"keys\":[{\"kty\":\"oct\",\"k\":\"kUymJmQI24JtIPh1R9qk1A\",\"kid\":\"QUxNQUVTTE9WRU5BMDAwMQ\"}],\"type\":\"temporary\"}").getBytes());

in PlayerActivity's buildDrmSessionManagerV18

Link to test content

Look above.

Version of ExoPlayer being used

2.8.4

Device(s) and version(s) of Android being used

Xiaomi Mi A1 (Android One), Android 8.1

A full bug report captured from the device

Will send it to email.

@ojw28 ojw28 self-assigned this Sep 18, 2018
@ojw28 ojw28 added the bug label Sep 18, 2018
ojw28 added a commit that referenced this issue Sep 24, 2018
Issue: #4834

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=214258163
@ojw28 ojw28 closed this as completed Sep 24, 2018
ojw28 added a commit that referenced this issue Sep 24, 2018
Issue: #4834

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=214258163
@google google locked and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants