TracksConverter

interface TracksConverter

Interface responsible for converting between ExoPlayer's Tracks and Cast's MediaTrack representations. This is necessary because the Cast framework uses its own data structures for track information.

Inheritors

Types

Link copied to clipboard
class CastTracksInfo(val mediaTracks: List<MediaTrack>, val activeTrackIds: LongArray, val trackSelectionOverrides: List<TrackSelectionOverride>)

Holds data from Media3 Tracks to be compatible with Cast SDK.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun toTracks(mediaTracks: List<MediaTrack>, activeTrackIds: LongArray): Tracks

Converts a list of MediaTrack and active track IDs to Tracks.