Back to Exoplayer

CeaUtil (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/extractor/CeaUtil.html

latest4.0 KB
Original Source

Package com.google.android.exoplayer2.extractor

Class CeaUtil


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classCeaUtilextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Utility methods for handling CEA-608/708 messages. Defined in A/53 Part 4:2009.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static int | USER_DATA_IDENTIFIER_GA94 | Deprecated. | | static int | USER_DATA_TYPE_CODE_MPEG_CC | Deprecated. |

Method Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static void | consume​(long presentationTimeUs, ParsableByteArray seiBuffer, TrackOutput[] outputs) | Deprecated.

Consumes the unescaped content of an SEI NAL unit, writing the content of any CEA-608/708 messages as samples to all of the provided outputs. | | static void | consumeCcData​(long presentationTimeUs, ParsableByteArray ccDataBuffer, TrackOutput[] outputs) | Deprecated.

Consumes caption data (cc_data), writing the content as samples to all of the provided outputs. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

USER_DATA_IDENTIFIER_GA94

public static final int USER_DATA_IDENTIFIER_GA94

Deprecated. See Also:Constant Field Values

- 

USER_DATA_TYPE_CODE_MPEG_CC

public static final int USER_DATA_TYPE_CODE_MPEG_CC

Deprecated. See Also:Constant Field Values

Method Detail

- 

consume

public static void consume​(long presentationTimeUs,[ParsableByteArray](../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")seiBuffer,[TrackOutput](TrackOutput.html "interface in com.google.android.exoplayer2.extractor")[] outputs)

Deprecated.

Consumes the unescaped content of an SEI NAL unit, writing the content of any CEA-608/708 messages as samples to all of the provided outputs. Parameters:presentationTimeUs - The presentation time in microseconds for any samples.seiBuffer - The unescaped SEI NAL unit data, excluding the NAL unit start code and type.outputs - The outputs to which any samples should be written.

- 

consumeCcData

public static void consumeCcData​(long presentationTimeUs,[ParsableByteArray](../util/ParsableByteArray.html "class in com.google.android.exoplayer2.util")ccDataBuffer,[TrackOutput](TrackOutput.html "interface in com.google.android.exoplayer2.extractor")[] outputs)

Deprecated.

Consumes caption data (cc_data), writing the content as samples to all of the provided outputs. Parameters:presentationTimeUs - The presentation time in microseconds for any samples.ccDataBuffer - The buffer containing the caption data.outputs - The outputs to which any samples should be written.