com.google.android.exoplayer2.Format.createVideoContainerFormat()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(227)

本文整理了Java中com.google.android.exoplayer2.Format.createVideoContainerFormat()方法的一些代码示例,展示了Format.createVideoContainerFormat()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.createVideoContainerFormat()方法的具体详情如下:
包路径:com.google.android.exoplayer2.Format
类名称:Format
方法名:createVideoContainerFormat

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,

相关文章