Back to Exoplayer

TrackNameProvider (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ui/TrackNameProvider.html

latest1.5 KB
Original Source

Package com.google.android.exoplayer2.ui

Interface TrackNameProvider

  • All Known Implementing Classes:DefaultTrackNameProvider

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

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.

Converts Formats to user readable track names.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | String | getTrackName​(Format format) | Deprecated.

Returns a user readable track name for the given Format. |

Method Detail

- 

getTrackName

[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getTrackName​([Format](../Format.html "class in com.google.android.exoplayer2")format)

Deprecated.

Returns a user readable track name for the given Format.