Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ea9611ac
authored
May 13, 2015
by
ojw28
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #454 from pakerfeldt/property-setter
Support setting properties on MediaDrm
parents
5ca5df0b
1469f11a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
library/src/main/java/com/google/android/exoplayer/drm/StreamingDrmSessionManager.java
library/src/main/java/com/google/android/exoplayer/drm/StreamingDrmSessionManager.java
View file @
ea9611ac
...
...
@@ -214,6 +214,18 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
}
/**
* Provides access to {@link MediaDrm#setPropertyString(String, String)}.
* <p>
* This method may be called when the manager is in any state.
*
* @param key The property to write.
* @param value The value to write.
*/
public
final
void
setPropertyString
(
String
key
,
String
value
)
{
mediaDrm
.
setPropertyString
(
key
,
value
);
}
/**
* Provides access to {@link MediaDrm#getPropertyByteArray(String)}.
* <p>
* This method may be called when the manager is in any state.
...
...
@@ -225,6 +237,18 @@ public class StreamingDrmSessionManager implements DrmSessionManager {
return
mediaDrm
.
getPropertyByteArray
(
key
);
}
/**
* Provides access to {@link MediaDrm#setPropertyByteArray(String, byte[])}.
* <p>
* This method may be called when the manager is in any state.
*
* @param key The property to write.
* @param value The value to write.
*/
public
final
void
setPropertyByteArray
(
String
key
,
byte
[]
value
)
{
mediaDrm
.
setPropertyByteArray
(
key
,
value
);
}
@Override
public
void
open
(
DrmInitData
drmInitData
)
{
if
(++
openCount
!=
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment