DefaultFormatConverter

A default implementation of FormatConverter.

Constructors

Link copied to clipboard
constructor()

Functions

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

Convert a MediaTrack to a Format.

Link copied to clipboard
open override 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.