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
1f0d4118
authored
Oct 20, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Make mpd parser more ameanable for extension.
parent
5a871332
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
21 deletions
library/src/main/java/com/google/android/exoplayer/dash/mpd/AdaptationSet.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/ContentProtection.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescription.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescriptionParser.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/Period.java
library/src/main/java/com/google/android/exoplayer/dash/mpd/AdaptationSet.java
View file @
1f0d4118
...
...
@@ -21,7 +21,7 @@ import java.util.List;
/**
* Represents a set of interchangeable encoded versions of a media content component.
*/
public
final
class
AdaptationSet
{
public
class
AdaptationSet
{
public
static
final
int
TYPE_UNKNOWN
=
-
1
;
public
static
final
int
TYPE_VIDEO
=
0
;
...
...
library/src/main/java/com/google/android/exoplayer/dash/mpd/ContentProtection.java
View file @
1f0d4118
...
...
@@ -15,36 +15,21 @@
*/
package
com
.
google
.
android
.
exoplayer
.
dash
.
mpd
;
import
java.util.Collections
;
import
java.util.Map
;
/**
* Represents a ContentProtection tag in an AdaptationSet. Holds arbitrary data for various DRM
* schemes.
* Represents a ContentProtection tag in an AdaptationSet.
*/
public
final
class
ContentProtection
{
public
class
ContentProtection
{
/**
* Identifies the content protection scheme.
*/
public
final
String
schemeUriId
;
/**
* Protection scheme specific data.
*/
public
final
Map
<
String
,
String
>
keyedData
;
/**
* @param schemeUriId Identifies the content protection scheme.
* @param keyedData Data specific to the scheme.
*/
public
ContentProtection
(
String
schemeUriId
,
Map
<
String
,
String
>
keyedData
)
{
public
ContentProtection
(
String
schemeUriId
)
{
this
.
schemeUriId
=
schemeUriId
;
if
(
keyedData
!=
null
)
{
this
.
keyedData
=
Collections
.
unmodifiableMap
(
keyedData
);
}
else
{
this
.
keyedData
=
Collections
.
emptyMap
();
}
}
}
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescription.java
View file @
1f0d4118
...
...
@@ -21,7 +21,7 @@ import java.util.List;
/**
* Represents a DASH media presentation description (mpd).
*/
public
final
class
MediaPresentationDescription
{
public
class
MediaPresentationDescription
{
public
final
long
availabilityStartTime
;
...
...
library/src/main/java/com/google/android/exoplayer/dash/mpd/MediaPresentationDescriptionParser.java
View file @
1f0d4118
This diff is collapsed.
Click to expand it.
library/src/main/java/com/google/android/exoplayer/dash/mpd/Period.java
View file @
1f0d4118
...
...
@@ -21,7 +21,7 @@ import java.util.List;
/**
* Encapsulates media content components over a contiguous period of time.
*/
public
final
class
Period
{
public
class
Period
{
/**
* The period identifier, if one exists.
...
...
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