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

Call _sfu?.publish first, then call (_stream as ion.LocalStream).unpublish(), and then call _sfu?.publish to report an error #51

Open
hrxiang opened this issue Aug 9, 2021 · 0 comments

Comments

@hrxiang
Copy link

hrxiang commented Aug 9, 2021

_sfu?.publish(localStream1);
localStream1.unpublish();
_sfu?.publish(localStream2);

27416): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: Too many elements #0 ListMixin.singleWhere (dart:collection/list.dart:191:11)
I/flutter (27416): #1 CodecCapabilitySelector._mline (package:flutter_ion/src/utils.dart:97:18)
I/flutter (27416): #2 CodecCapabilitySelector.getCapabilities (package:flutter_ion/src/utils.dart:69:17)
I/flutter (27416): #3 Client.setPreferredCodec (package:flutter_ion/src/client.dart:231:24)
I/flutter (27416): #4 Client.onnegotiationneeded (package:flutter_ion/src/client.dart:217:9)
I/flutter (27416):
I/flutter (27416): #5 Client.publish (package:flutter_ion/src/client.dart:127:5)
I/flutter (27416):
I/flutter (27416): #6 RoomController.join. (package:room/pages/room_page.dart:208:11)
I/flutter (27416):
I/flutter (27416): v=0
I/flutter (27416): o=- 4428287673785843710 5 IN IP4 127.0.0.1
I/flutter (27416): s=-
I/flutter (27416): t=0 0
I/flutter (27416): a=group:BUNDLE 0 1 3

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