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); }
@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); }
case TYPE_SUBTITLES: format = Format.createTextContainerFormat( Format.createTextContainerFormat(
@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"); } }
accessibilityChannel = Format.NO_VALUE; return Format.createTextContainerFormat( id, label,
String language = (String) getNormalizedAttribute(KEY_LANGUAGE); format = Format.createTextContainerFormat( id, name,
@C.SelectionFlags int selectionFlags, @Nullable String language) { return createTextContainerFormat( id, label,