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

I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element #36

Open
saksham-gt opened this issue Aug 4, 2021 · 0 comments

Comments

@saksham-gt
Copy link

saksham-gt commented Aug 4, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant