Back to Exoplayer

ColorParser (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/ColorParser.html

latest2.4 KB
Original Source

Package com.google.android.exoplayer2.util

Class ColorParser


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classColorParserextends[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.

Parser for color expressions found in styling formats, e.g. TTML and CSS.

See also:

Method Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static int | parseCssColor​(String colorExpression) | Deprecated.

Parses a CSS color expression. | | static int | parseTtmlColor​(String colorExpression) | Deprecated.

Parses a TTML color expression. |

- 

Methods inherited from class java.lang.Object

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

Method Detail

- 

parseTtmlColor

@ColorInt
public static int parseTtmlColor​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")colorExpression)

Deprecated.

Parses a TTML color expression. Parameters:colorExpression - The color expression.Returns:The parsed ARGB color.

- 

parseCssColor

@ColorInt
public static int parseCssColor​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")colorExpression)

Deprecated.

Parses a CSS color expression. Parameters:colorExpression - The color expression.Returns:The parsed ARGB color.