Skip to content

Ability to add drm key requests after player has been created #1924

@SteUK

Description

@SteUK

Hi,

This is a feature request...sorry if I have missed an option somewhere or posting this in the wrong place!

Using ExoPlayer branch dev-2.0.0-rc

I using Axinom as a DRM solution service. This requires setting a drm key request - I am sure most of you know the procedure as it has been covered on here before.

What I would like to do is create my player up front, then later specify license tokens (created on demand). Currently have altered HttpMediaDrmCallback, adding two functions:

public void RemoveKeyRequestProperty( String key )
public void AddKeyRequestProperty( String key, String value )

...and removing the final from the variable keyRequestProperties.

Not sure if this is the best approach, but it seems to work for me.

Thanks!
Ste

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions