Skip to content
New issue

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

Crash When remove audio track addSink(xxx) #549

Open
liuyang2211 opened this issue Dec 4, 2024 · 1 comment
Open

Crash When remove audio track addSink(xxx) #549

liuyang2211 opened this issue Dec 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@liuyang2211
Copy link

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:

  • Device: [e.g. Google Pixel 3]
  • OS: [e.g. Android 12]
  • LiveKit SDK version: [e.g. 2.9.0]

Additional context
Add any other context about the problem here.

@liuyang2211 liuyang2211 added the bug Something isn't working label Dec 4, 2024
@liuyang2211
Copy link
Author

Fatal error in: gen/jni_headers/sdk/android/generated_peerconnection_jni/../../../../../../../../../../../_source/android_prefixed/webrtc/src/sdk/android/src/jni/jni_generator_helper.h, line 105

last system error: 95

Check failed: !env->ExceptionCheck()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant