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

Fix MediaStreamTrack lifecycle, clone and make GetStats logs silent. #605

Merged
merged 7 commits into from
Nov 19, 2020
Merged

Fix MediaStreamTrack lifecycle, clone and make GetStats logs silent. #605

merged 7 commits into from
Nov 19, 2020

Conversation

samgabriel
Copy link
Contributor

The pull request fixes issue #592 the local and remote tracks not visible. The issue was Twilio parses the a=ssrc to get the exact trackIds mapped to the msid. this can seen here https://github.com/twilio/twilio-webrtc.js/blob/87f7e61106f58e29364999d8753c773e5602536f/lib/util/sdp.js#L127-L129 .

There was also a problem after releasing the stream in which the stream id was not being removed from the RTCPeerConnection localtracks leading to the next time someone is trying to publish a track it would fail.

@hthetiot hthetiot changed the title Fixes Issue #592 Fix MediaStreamTrack lifecycle and make GetStats logs silent. Nov 19, 2020
@hthetiot hthetiot added this to the 6.0.16 milestone Nov 19, 2020
src/PluginRTCPeerConnection.swift Show resolved Hide resolved
src/PluginRTCPeerConnection.swift Show resolved Hide resolved
src/PluginRTCPeerConnection.swift Show resolved Hide resolved
src/iosrtcPlugin.swift Show resolved Hide resolved
js/MediaStream.js Show resolved Hide resolved
js/RTCPeerConnection.js Show resolved Hide resolved
src/PluginMediaStreamTrack.swift Show resolved Hide resolved
@hthetiot
Copy link
Contributor

I will make some testing before merging @samgabriel thank you for your contribution.

@hthetiot hthetiot merged commit 557fa29 into cordova-rtc:master Nov 19, 2020
@hthetiot hthetiot changed the title Fix MediaStreamTrack lifecycle and make GetStats logs silent. Fix MediaStreamTrack lifecycle, clone and make GetStats logs silent. Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants