We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When I wanted to obtain remote audio stream data in a way similar to getting local audio stream data, an exception crash occurred.
is RoomEvent.ActiveSpeakersChanged -> { if (event.speakers.isEmpty()) return@collect event.speakers.firstOrNull()!!::audioTrackPublications.flow .flatMapLatest { tracks -> Log.d("-------", "tracks change") if (tracks.firstOrNull()?.first?.track !is LocalAudioTrack) { val audioSteamData = tracks.firstOrNull()?.first?.track as? RemoteAudioTrack audioSteamData?.addSink(audioSinkActive) } flowOf(tracks) } }
private val audioSinkActive = AudioTrackSink { p0, p1, p2, p3, p4, p5 -> Log.d( "-------", "Manager: audioSinkActive: p0:$p0\n" + " p1:$p1\n" + " p2:$p2\n" + " p3:$p3\n" + " p4:$p4\n" + " p5:$p5" )
}
Device Info:
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When I wanted to obtain remote audio stream data in a way similar to getting local audio stream data, an exception crash occurred.
is RoomEvent.ActiveSpeakersChanged -> {
if (event.speakers.isEmpty()) return@collect
event.speakers.firstOrNull()!!::audioTrackPublications.flow
.flatMapLatest { tracks ->
Log.d("-------", "tracks change")
if (tracks.firstOrNull()?.first?.track !is LocalAudioTrack) {
val audioSteamData =
tracks.firstOrNull()?.first?.track as? RemoteAudioTrack
audioSteamData?.addSink(audioSinkActive)
}
flowOf(tracks)
}
}
private val audioSinkActive =
AudioTrackSink { p0, p1, p2, p3, p4, p5 ->
Log.d(
"-------", "Manager: audioSinkActive: p0:$p0\n" +
" p1:$p1\n" +
" p2:$p2\n" +
" p3:$p3\n" +
" p4:$p4\n" +
" p5:$p5"
)
}
Device Info:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: