Commit 4c348d8a by ojw28

Merge pull request #83 from google/dev

Pull dev -> dev-l
parents fcd9ec6c 1f0d4118
...@@ -294,6 +294,9 @@ public class MediaCodecAudioTrackRenderer extends MediaCodecTrackRenderer { ...@@ -294,6 +294,9 @@ public class MediaCodecAudioTrackRenderer extends MediaCodecTrackRenderer {
case 6: case 6:
channelConfig = AudioFormat.CHANNEL_OUT_5POINT1; channelConfig = AudioFormat.CHANNEL_OUT_5POINT1;
break; break;
case 8:
channelConfig = AudioFormat.CHANNEL_OUT_7POINT1;
break;
default: default:
throw new IllegalArgumentException("Unsupported channel count: " + channelCount); throw new IllegalArgumentException("Unsupported channel count: " + channelCount);
} }
......
...@@ -21,7 +21,7 @@ import java.util.List; ...@@ -21,7 +21,7 @@ import java.util.List;
/** /**
* Represents a set of interchangeable encoded versions of a media content component. * 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_UNKNOWN = -1;
public static final int TYPE_VIDEO = 0; public static final int TYPE_VIDEO = 0;
......
...@@ -15,36 +15,21 @@ ...@@ -15,36 +15,21 @@
*/ */
package com.google.android.exoplayer.dash.mpd; 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 * Represents a ContentProtection tag in an AdaptationSet.
* schemes.
*/ */
public final class ContentProtection { public class ContentProtection {
/** /**
* Identifies the content protection scheme. * Identifies the content protection scheme.
*/ */
public final String schemeUriId; public final String schemeUriId;
/**
* Protection scheme specific data.
*/
public final Map<String, String> keyedData;
/** /**
* @param schemeUriId Identifies the content protection scheme. * @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; this.schemeUriId = schemeUriId;
if (keyedData != null) {
this.keyedData = Collections.unmodifiableMap(keyedData);
} else {
this.keyedData = Collections.emptyMap();
}
} }
} }
...@@ -21,7 +21,7 @@ import java.util.List; ...@@ -21,7 +21,7 @@ import java.util.List;
/** /**
* Represents a DASH media presentation description (mpd). * Represents a DASH media presentation description (mpd).
*/ */
public final class MediaPresentationDescription { public class MediaPresentationDescription {
public final long availabilityStartTime; public final long availabilityStartTime;
......
...@@ -21,7 +21,7 @@ import java.util.List; ...@@ -21,7 +21,7 @@ import java.util.List;
/** /**
* Encapsulates media content components over a contiguous period of time. * Encapsulates media content components over a contiguous period of time.
*/ */
public final class Period { public class Period {
/** /**
* The period identifier, if one exists. * The period identifier, if one exists.
......
...@@ -167,6 +167,7 @@ public final class Util { ...@@ -167,6 +167,7 @@ public final class Util {
return Uri.parse(stringUri); return Uri.parse(stringUri);
} }
if (stringUri.startsWith("/")) { if (stringUri.startsWith("/")) {
stringUri = stringUri.substring(1);
return new Uri.Builder() return new Uri.Builder()
.scheme(baseUri.getScheme()) .scheme(baseUri.getScheme())
.authority(baseUri.getAuthority()) .authority(baseUri.getAuthority())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment