8000 [Android] Fixed `Track is null` 'Sender is null' issues when removing track. by Ayman-Kortobaa · Pull Request #401 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content

[Android] Fixed Track is null 'Sender is null' issues when removing track. #401

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

Conversation

Ayman-Kortobaa
Copy link
Contributor

This pull request fixes the following issues:
In unified-plan when calling mediaStream.removeTrack(sender.track) it throws track is null error because the track id is null as in the Java code it is called trackId while in Dart code it anticipates id.
And also in peerConnection.removeTrack(sender) it throws sender is null issue because in the java code the track id is compared with the == operator which compares reference instead of equality, it is replaced with the .equals() method to fix this issue.
I have created the issue here #400

@cloudwebrtc
Copy link
Member

LGTM

@cloudwebrtc cloudwebrtc closed this Nov 3, 2020
@cloudwebrtc cloudwebrtc reopened this Nov 3, 2020
@cloudwebrtc cloudwebrtc merged commit e177408 into flutter-webrtc:master Nov 3, 2020
@Ayman-Kortobaa Ayman-Kortobaa deleted the rtpsender-removetrack-issue branch November 9, 2020 11: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
Development

Successfully merging this pull request may close these issues.

3 participants
0