client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug] Unable to RTCRtpTransceiver::setCodecPreferences: Error: transcevier not found!

Open coder-xb opened this issue 2 years ago • 0 comments

Describe the bug This issue occasionally occurs on IOS devices ( Not every time, but is occur ), So much so that room.localParticipant?.videoTracks.firstOrNull?.track is null and cannot be rendered LocalVideoTrack by VideoTrackRenderer To Reproduce Immediately call await room.localParticipant?.setCameraEnabled(true); after await room.connect(...) Expected behavior The room.localParticipant?.videoTracks.firstOrNull?.track is not null, LocalVideoTrack can be rendered by VideoTrackRenderer Platform information

  • Flutter version: Channel stable, 3.10.5
  • Plugin version: The branch #312
  • Flutter target OS: iOS [Real Device]
  • Flutter target OS version: iOS 16.5.1
  • Flutter console log:
target format 1280x720, targetFps: 30, seledted fps 30
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Unable to RTCRtpTransceiver::setCodecPreferences: Error: transcevier not found!
#0      RTCRtpTransceiverNative.setCodecPreferences (package:flutter_webrtc/src/native/rtc_rtp_transceiver_impl.dart:180:7)
<asynchronous suspension>
#1      LocalParticipant.publishVideoTrack (package:livekit_client/src/participant/local.dart:220:7)
<asynchronous suspension>
#2      LocalParticipant.setSourceEnabled (package:livekit_client/src/participant/local.dart:421:16)
...

coder-xb avatar Jul 04 '23 12:07 coder-xb