livestream
Deprecated
The correct approach is to find the participant with video from the participants list or if the id of the user who is host is known query that one directly.
Replace with
call.state.participants.flatMapLatest { participants ->
combine(participants.map { p -> p.videoEnabled.map { enabled -> p to enabled } }) { pairs ->
pairs.filter { (_, e) -> e }.map { (p, _) -> p }
}
}
Content copied to clipboard