8000 fix: fix wrong id type for data-channel. by cloudwebrtc · Pull Request #924 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content

fix: fix wrong id type for data-channel. #924

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

Merged
merged 2 commits into from
Apr 23, 2022

Conversation

cloudwebrtc
Copy link
Member

close #923, close #910

@hiroshihorie
Copy link
Member
hiroshihorie commented Apr 20, 2022

Oh ... this is bad.. thanks for fixing it !!
It seems like depending on the platform map['id'] might be an int or string ? Which is causing confusion maybe ?
Could you please check. 🙏

@cloudwebrtc
Copy link
Member Author
cloudwebrtc commented Apr 20, 2022

From here https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/id, id is an unsigned integer, but in order not to break the existing API, at the moment I think just needs to check all The platform's native code, make sure the id is of type int.
I will check all the native code tomorrow, the issue will be fixed soon. :)

@simonbengtsson
Copy link

For me it was also the the wrong id on windows ie not only wrong type #907 but keeping this line commented out works.

@cloudwebrtc cloudwebrtc merged commit 362587f into master Apr 23, 2022
hieplee2997 pushed a commit to hieplee2997/flutter-webrtc that referenced this pull request Jun 2, 2022
* fix: fix wrong id type for data-channel.

* chore: `run import_sorter:main --no-comments`
@cloudwebrtc cloudwebrtc deleted the fix/data-channel-id-type-issue branch July 27, 2022 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants
0