FormatConverter

interface FormatConverter

Interface responsible for converting between ExoPlayer's Format and Cast's MediaTrack representations.

Inheritors

Functions

Link copied to clipboard
abstract fun toFormat(mediaTrack: MediaTrack): Format

Convert a MediaTrack to a Format.

Link copied to clipboard
abstract fun toMediaTrack(trackType: @C.TrackType Int, trackId: Long, format: Format): MediaTrack

Convert a Format to a MediaTrack respecting the following specifications https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.Track#roles.