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

Unpublishing and republishing a media track might not be seen by Participants #34

Closed
paynerc opened this issue Feb 14, 2019 · 5 comments
Assignees

Comments

@paynerc
Copy link
Contributor

paynerc commented Feb 14, 2019

Affected Versions

All 1.x and 2.x SDK releases.

Description

Unpublishing and republishing a TVILocalAudioTrack or TVILocalVideoTrack might not be seen by Participants in the following cases:

  • Peer-to-Peer: If a Participant is reconnecting, or the unpublish / publish operations occur very quickly.
  • Group Room: If the unpublish / publish operations occur very quickly.

Solution

Future mobile SDKs will adopt unified plan, and will also clone Tracks so that this race condition does not occur. In a Group Room, subscribers always see a cloned version of the publisher's Track.

Workaround

  • Peer-to-Peer: Destroy the LocalAudioTrack, or LocalVideoTrack and associated Capturer/Source after unpublishing. Create and publish a new Track.
  • Group: Wait several seconds after unpublishing a Track to re-publish it.
@sandeep9607
Copy link

Currently using version 3.4. do we get any solution to fix this?

@layanavg
Copy link

Currently using version 3.7.

We are having the same problem. we are using the peer to peer connection and is clearing the tracks before publishing, even then this occurs.is there any way to fix this

@paynerc
Copy link
Contributor Author

paynerc commented Jan 19, 2021

As mentioned previously, the solution to this will be with the adoption of unified plan. While I cannot give an exact release date for this, I can say that it is actively being developed now. Stay tuned.

Ryan

@kierandonaldson kierandonaldson assigned ceaglest and unassigned paynerc Jul 9, 2021
chivy-we added a commit to webessentials/react-native-twilio-video-webrtc that referenced this issue Jan 5, 2023
@rafaelnobrekz
Copy link

@kierandonaldson why has this been marked complete when it is still a known issue? Won't it ever be fixed?

@rafaelnobrekz
Copy link

Now it's clear it won't be fixed 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants