ion-app-flutter
ion-app-flutter copied to clipboard
I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element
Your environment.
- Package Version: 0.4.4
- System: Android
- Android Version : Android 10 (API 29) & Android 11 (API 30)
What did you do?
I wanted to only run this application with audio and not with video, so I changes the _localStream from
_localStream = await LocalStream.getUserMedia(
constraints: Constraints.defaults
..simulcast = false
..resolution = resolution
..codec = codec);
to
_localStream = await LocalStream.getUserMedia(
constraints: Constraints(
audio: true,
video: false,
codec: codec,
));
but this isn't working. And it's showing me this error:
I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element
Also, I've made some changes in the code based on this like in ion?.onTrack function
track.kind=='audio'
rather than
track.kind=='video'
What did you expect?
I expected a black screen instead of video stream (which was there) and the audio stream to work fine (but it did not).
What happened?
Instead it didn't stream any audio and showing me this:
I/org.webrtc.Logging(20179): EglRenderer: Duration: 4009 ms. Frames received: 0. Dropped: 0. Rendered: 0. Render fps: .0. Average render time: NA. Average swapBuffer time: NA.
D/FlutterWebRTCPlugin(20179): onConnectionChangeCONNECTED
I/org.webrtc.Logging(20179): NetworkMonitorAutoDetect: capabilities changed: [ Transports: WIFI Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=49500Kbps LinkDnBandwidth>=49500Kbps SignalStrength: -61 AdministratorUids: [] RequestorUid: -1 RequestorPackageName: null]
I/org.webrtc.Logging(20179): EglRenderer: Duration: 4009 ms. Frames received: 0. Dropped: 0. Rendered: 0. Render fps: .0. Average render time: NA. Average swapBuffer time: NA.
and also,
I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element