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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ RtpTransceiver getRtpTransceiverById(String id) {
RtpSender getRtpSenderById(String id) {
List<RtpSender> senders = peerConnection.getSenders();
for(RtpSender sender : senders) {
if (id == sender.id()){
if (id.equals(sender.id())){
return sender;
}
}
Expand Down Expand Up @@ -777,7 +777,7 @@ private Map<String, Object> mediaStreamToMap(MediaStream stream){
private Map<String, Object> mediaTrackToMap(MediaStreamTrack track){
ConstraintsMap info = new ConstraintsMap();
if(track != null){
info.putString("trackId", track.id());
info.putString("id", track.id());
info.putString("label",track.getClass() == VideoTrack.class? "video": "audio");
info.putString("kind",track.kind());
info.putBoolean("enabled", track.enabled());
Expand Down
0