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

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

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

Format.createTextContainerFormat介绍

暂无

代码示例

代码示例来源:origin: google/ExoPlayer

private static Format buildTextFormat(String id, String language, int selectionFlags) {
 return Format.createTextContainerFormat(
   id,
   /* label= */ null,
   /* containerMimeType= */ null,
   /* sampleMimeType= */ MimeTypes.TEXT_VTT,
   /* codecs= */ null,
   /* bitrate= */ Format.NO_VALUE,
   selectionFlags,
   language);
}

代码示例来源:origin: google/ExoPlayer

@Deprecated
public static Format createTextContainerFormat(
  @Nullable String id,
  @Nullable String containerMimeType,
  @Nullable String sampleMimeType,
  @Nullable String codecs,
  int bitrate,
  @C.SelectionFlags int selectionFlags,
  @Nullable String language) {
 return createTextContainerFormat(
   id,
   /* label= */ null,
   containerMimeType,
   sampleMimeType,
   codecs,
   bitrate,
   selectionFlags,
   language);
}

代码示例来源:origin: google/ExoPlayer

case TYPE_SUBTITLES:
 format =
   Format.createTextContainerFormat(
   Format.createTextContainerFormat(

代码示例来源:origin: google/ExoPlayer

@Test
 public void testRawCcSample() throws Exception {
  ExtractorAsserts.assertBehavior(
    () ->
      new RawCcExtractor(
        Format.createTextContainerFormat(
          /* id= */ null,
          /* label= */ null,
          /* containerMimeType= */ null,
          /* sampleMimeType= */ MimeTypes.APPLICATION_CEA608,
          /* codecs= */ "cea608",
          /* bitrate= */ Format.NO_VALUE,
          /* selectionFlags= */ 0,
          /* language= */ null,
          /* accessibilityChannel= */ 1)),
    "rawcc/sample.rawcc");
 }
}

代码示例来源:origin: google/ExoPlayer

accessibilityChannel = Format.NO_VALUE;
return Format.createTextContainerFormat(
  id,
  label,

代码示例来源:origin: google/ExoPlayer

String language = (String) getNormalizedAttribute(KEY_LANGUAGE);
format =
  Format.createTextContainerFormat(
    id,
    name,

代码示例来源:origin: google/ExoPlayer

@C.SelectionFlags int selectionFlags,
 @Nullable String language) {
return createTextContainerFormat(
  id,
  label,

相关文章