mirror of
https://github.com/androidx/media.git
synced 2025-05-15 03:29:53 +08:00
Add a metadata argument to Format factory methods used in HLS
Required for propagation of HlsMetadataEntry's in chunkless preparation. PiperOrigin-RevId: 263324345
This commit is contained in:
parent
213912b328
commit
a572fb3f22
@ -180,8 +180,8 @@ public final class Format implements Parcelable {
|
||||
// Video.
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #createVideoContainerFormat(String, String, String, String, String, int,
|
||||
* int, int, float, List, int, int)} instead.
|
||||
* @deprecated Use {@link #createVideoContainerFormat(String, String, String, String, String,
|
||||
* Metadata, int, int, int, float, List, int, int)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static Format createVideoContainerFormat(
|
||||
@ -201,6 +201,7 @@ public final class Format implements Parcelable {
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
@ -216,6 +217,7 @@ public final class Format implements Parcelable {
|
||||
@Nullable String containerMimeType,
|
||||
String sampleMimeType,
|
||||
String codecs,
|
||||
@Nullable Metadata metadata,
|
||||
int bitrate,
|
||||
int width,
|
||||
int height,
|
||||
@ -230,7 +232,7 @@ public final class Format implements Parcelable {
|
||||
roleFlags,
|
||||
bitrate,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
metadata,
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
/* maxInputSize= */ NO_VALUE,
|
||||
@ -363,8 +365,8 @@ public final class Format implements Parcelable {
|
||||
// Audio.
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #createAudioContainerFormat(String, String, String, String, String, int,
|
||||
* int, int, List, int, int, String)} instead.
|
||||
* @deprecated Use {@link #createAudioContainerFormat(String, String, String, String, String,
|
||||
* Metadata, int, int, int, List, int, int, String)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static Format createAudioContainerFormat(
|
||||
@ -384,6 +386,7 @@ public final class Format implements Parcelable {
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
channelCount,
|
||||
sampleRate,
|
||||
@ -399,6 +402,7 @@ public final class Format implements Parcelable {
|
||||
@Nullable String containerMimeType,
|
||||
@Nullable String sampleMimeType,
|
||||
@Nullable String codecs,
|
||||
@Nullable Metadata metadata,
|
||||
int bitrate,
|
||||
int channelCount,
|
||||
int sampleRate,
|
||||
@ -413,7 +417,7 @@ public final class Format implements Parcelable {
|
||||
roleFlags,
|
||||
bitrate,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
metadata,
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
/* maxInputSize= */ NO_VALUE,
|
||||
|
@ -596,6 +596,7 @@ public class DashManifestParser extends DefaultHandler
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
@ -610,6 +611,7 @@ public class DashManifestParser extends DefaultHandler
|
||||
containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
audioChannels,
|
||||
audioSamplingRate,
|
||||
|
@ -80,6 +80,7 @@ public final class DashUtilTest {
|
||||
MimeTypes.VIDEO_MP4,
|
||||
MimeTypes.VIDEO_H264,
|
||||
/* codecs= */ "",
|
||||
/* metadata= */ null,
|
||||
Format.NO_VALUE,
|
||||
/* width= */ 1024,
|
||||
/* height= */ 768,
|
||||
|
@ -787,6 +787,7 @@ public final class HlsMediaPeriod implements MediaPeriod, HlsSampleStreamWrapper
|
||||
variantFormat.containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
variantFormat.bitrate,
|
||||
variantFormat.width,
|
||||
variantFormat.height,
|
||||
@ -829,6 +830,7 @@ public final class HlsMediaPeriod implements MediaPeriod, HlsSampleStreamWrapper
|
||||
variantFormat.containerMimeType,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
channelCount,
|
||||
/* sampleRate= */ Format.NO_VALUE,
|
||||
|
@ -349,6 +349,7 @@ public final class HlsPlaylistParser implements ParsingLoadable.Parser<HlsPlayli
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
/* sampleMimeType= */ null,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
@ -422,6 +423,7 @@ public final class HlsPlaylistParser implements ParsingLoadable.Parser<HlsPlayli
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
/* bitrate= */ Format.NO_VALUE,
|
||||
width,
|
||||
height,
|
||||
@ -451,6 +453,7 @@ public final class HlsPlaylistParser implements ParsingLoadable.Parser<HlsPlayli
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
sampleMimeType,
|
||||
codecs,
|
||||
/* metadata= */ null,
|
||||
/* bitrate= */ Format.NO_VALUE,
|
||||
channelCount,
|
||||
/* sampleRate= */ Format.NO_VALUE,
|
||||
|
@ -128,6 +128,7 @@ public final class HlsMediaPeriodTest {
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
/* sampleMimeType= */ null,
|
||||
/* codecs= */ "avc1.100.41,mp4a.40.2",
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
/* width= */ Format.NO_VALUE,
|
||||
/* height= */ Format.NO_VALUE,
|
||||
@ -145,6 +146,7 @@ public final class HlsMediaPeriodTest {
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
/* sampleMimeType= */ null,
|
||||
/* codecs= */ "mp4a.40.2",
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
/* width= */ Format.NO_VALUE,
|
||||
/* height= */ Format.NO_VALUE,
|
||||
@ -177,6 +179,7 @@ public final class HlsMediaPeriodTest {
|
||||
/* containerMimeType= */ MimeTypes.APPLICATION_M3U8,
|
||||
MimeTypes.getMediaMimeType("mp4a.40.2"),
|
||||
/* codecs= */ "mp4a.40.2",
|
||||
/* metadata= */ null,
|
||||
/* bitrate= */ Format.NO_VALUE,
|
||||
/* channelCount= */ Format.NO_VALUE,
|
||||
/* sampleRate= */ Format.NO_VALUE,
|
||||
|
@ -681,6 +681,7 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
|
||||
MimeTypes.VIDEO_MP4,
|
||||
sampleMimeType,
|
||||
/* codecs= */ null,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
width,
|
||||
height,
|
||||
@ -706,6 +707,7 @@ public class SsManifestParser implements ParsingLoadable.Parser<SsManifest> {
|
||||
MimeTypes.AUDIO_MP4,
|
||||
sampleMimeType,
|
||||
/* codecs= */ null,
|
||||
/* metadata= */ null,
|
||||
bitrate,
|
||||
channels,
|
||||
samplingRate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user