-
Notifications
You must be signed in to change notification settings - Fork 178
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
Subscribed to videoTrack function called but shouldn't #397
Comments
Hi @spacedema, The behavior you are describing is not expected if you are using a unique Room for each call.
Are you reusing the same Room without disconnecting Participants A, B, and C from the first call? If you don't disconnect the Participants (by calling Room.disconnect() and waiting for roomDidDisconnect()) then they might hang around for up to 2 minutes using the 2.x SDK. If you can provide a Room SID I'd be happy to take a look. Regards, |
Hi, Chris I don't reuse same Room and I call Room.disconnect() at every call end.
Do you mean that I should reproduce issue and send you Sids from 1st and 2nd call? Regards, |
Yes, would this be possible @spacedema? I should be able to tell from the Room SIDs more about what is going on and if there is a bug. |
1st call Room Sid: RM22f2049b32db4140f6112012529cb259 |
Hi @spacedema, Sorry for the delayed response. It seems like there is a logical bug in your application code. In both of the Rooms, video was shared: RM22f2049b32db4140f6112012529cb259
RM693e59bbee7b79b1eb4bc5f5e1c07c09
Best, |
Yes, it was intentional. I wrote that "Participant B connects to room ABC and shares one videoTrack"
This corresponds to second scenario (2nd call, items 5-8). Why user (who published video track in 1st call) publish and immediately unpublish video track in second call? |
Hi @spacedema, Sorry that I did not respond to your last message, but I hope you were able to solve this issue. Normally Participants are subscribed to all the Tracks in a Room. The exceptions occur in a Group Room when you:
I hope that helps. If you have any more questions let us know. Thanks, |
Description
When I join a room that already has participants with shared video track, I check it with:
And everything works fine until 2nd call with same participants. I get event after participant did connect to room that he started video stream and after 1 sec ended video stream. My UI is not working correctly because of this.
Steps to Reproduce
1st Call
Participant A starts call and connects to room ABC and doesn't share videoTrack
Participant B connects to room ABC and shares one videoTrack
Participant C connects to room ABC and doesn't share videoTrack
Call ended
2nd Call
Participant A starts call and connects to room ABC and doesn't share videoTrack
Participant B connects to room ABC and doesn't share videoTrack
Participant C connects to room ABC and doesn't share videoTrack
Expected Behavior
func subscribed(to videoTrack: TVIRemoteVideoTrack) doesn't call for any participant in 2nd call
Actual Behavior
func subscribed(to videoTrack: TVIRemoteVideoTrack) called for participant B and after ~1 sec Unsubscribe and Unpublish functions called
🔸12:54:31:225 [DBG] (TwilioService+TVIRemoteDelegate:17) { }: Subscribed to Participant's B video track
🔸12:54:32:014 [DBG] (TwilioService+TVIRemoteDelegate:30) { }: Unsubscribed to Participant's B video track
🔸12:54:32:020 [DBG] (TwilioService+TVIRemoteDelegate:57) { }: Participant B unpublished video track
Reproduces How Often
100%
Versions
2.10.0
The text was updated successfully, but these errors were encountered: