CastTrackBridge

Applies local track/rate selections to the active cast session via the standard media commands — the same messages the receiver gets from every other sender platform, so it needs no custom handling.

Functions

Link copied to clipboard
fun selectAudioTrack(language: String?, name: String?): Boolean

Switch the receiver's audio track to the given language/label.

Link copied to clipboard
fun selectTextTrack(language: String?): Boolean

Switch the receiver's caption track; null language turns captions off.