本文整理了Java中com.google.android.exoplayer2.Format.createVideoContainerFormat()
方法的一些代码示例,展示了Format.createVideoContainerFormat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.createVideoContainerFormat()
方法的具体详情如下:
包路径:com.google.android.exoplayer2.Format
类名称:Format
方法名:createVideoContainerFormat
暂无
代码示例来源:origin: google/ExoPlayer
private static Format createVideoContainerFormat(String id) {
return Format.createVideoContainerFormat(
id,
"label",
/* containerMimeType= */ MimeTypes.APPLICATION_MP4,
/* sampleMimeType= */ MimeTypes.VIDEO_H264,
/* codecs= */ null,
/* bitrate= */ 2500000,
/* width= */ 1920,
/* height= */ 1080,
/* frameRate= */ Format.NO_VALUE,
/* initializationData= */ null,
/* selectionFlags= */ 0);
}
}
代码示例来源:origin: google/ExoPlayer
private static Format deriveVideoFormat(Format variantFormat) {
String codecs = Util.getCodecsOfType(variantFormat.codecs, C.TRACK_TYPE_VIDEO);
String sampleMimeType = MimeTypes.getMediaMimeType(codecs);
return Format.createVideoContainerFormat(
variantFormat.id,
variantFormat.label,
variantFormat.containerMimeType,
sampleMimeType,
codecs,
variantFormat.bitrate,
variantFormat.width,
variantFormat.height,
variantFormat.frameRate,
/* initializationData= */ null,
variantFormat.selectionFlags);
}
代码示例来源:origin: google/ExoPlayer
Format.createVideoContainerFormat(
代码示例来源:origin: google/ExoPlayer
private static Representation newRepresentations(DrmInitData drmInitData) {
Format format =
Format.createVideoContainerFormat(
"id",
"label",
MimeTypes.VIDEO_MP4,
MimeTypes.VIDEO_H264,
/* codecs= */ "",
Format.NO_VALUE,
/* width= */ 1024,
/* height= */ 768,
Format.NO_VALUE,
/* initializationData= */ null,
/* selectionFlags= */ 0);
if (drmInitData != null) {
format = format.copyWithDrmInitData(drmInitData);
}
return Representation.newInstance("", 0, format, "", new SingleSegmentBase());
}
代码示例来源:origin: google/ExoPlayer
return Format.createVideoContainerFormat(
id,
label,
代码示例来源:origin: google/ExoPlayer
parser.getAttributeValue(null, KEY_CODEC_PRIVATE_DATA));
format =
Format.createVideoContainerFormat(
id,
name,
代码示例来源:origin: google/ExoPlayer
@Nullable List<byte[]> initializationData,
@C.SelectionFlags int selectionFlags) {
return createVideoContainerFormat(
id,
内容来源于网络,如有侵权,请联系作者删除!