buildActiveTrackIds
fun buildActiveTrackIds(tracks: List<RemoteTrack>, currentActiveIds: List<Long>, replaceAudio: Boolean, newTrackId: Long?): LongArray(source)
Build the replacement active-track-id list. The request replaces the whole active set, so active tracks of the other type must be preserved (switching audio must not turn captions off and vice versa). Passing a null newTrackId deactivates the type entirely (captions off).