-
Notifications
You must be signed in to change notification settings - Fork 216
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
onParticipant{Enabled,Disabled}VideoTrack Freezes Video #786
Comments
Thanks for writing in with your issue. It looks like you are using a Group Room, where when A disables the VideoTrack, our media server stops sending media, and does not send black frames. You can work around this in your UI where you can listen to the disabled and enabled events on the RemoteVideoTrack and hide or show the <video> element accordingly. Please let me know if this works out for you. Thanks, Manjesh Malavalli |
Some times i get black screen & sometimes i get last freezing screen. I am using below code to connect to room. I am not sure it's group room. If it's problem of group room then how can i connect to one-to-one room?
I can listen to that event. I don't want to remove track since it will look like participant is disconnected. How can i send black screen from that event? |
This is also relevant to what I am working on with my React.js app. I am unsure on how to listen to the disabled/enabled events on the RemoteVideoTrack for a room in progress. In my React component I have a function with various room.on functions such as
But none of my console logs will go off if a user toggles cam/mic during the call. This makes sense since I don't think this roomJoined function is actively communicating with the call with Twilio so it wouldn't be updated. Do I need to implement my own flagging system to toggle the opposite user's mic/cam being on/off with Firebase and then listen for those changes in real time? From what you mentioned to @akvaliya, it seems there are RemoteVideoTrack events I can listen to, but I am unsure how? |
Whenever you get a "trackAdded" (1.x) or "trackSubscribed" (2.x) event, you can listen to "enabled" and "disabled" events on it: room.on('trackAdded', track => {
track.on('enabled', () => {...});
track.on('disabled', () => {...});
}); Now, when the other side mutes/unmutes the mic or camera, you will be able to receive these events and update the UI. Please let me know if this works for you. Thanks, Manjesh Malavalli |
This helped, I was using trackAdded and trackSubscribed interchangeably, I didn't realize those were renamed from v1 to v2. I had to take a look at the quickstart example again and just rebuilt my setup and this worked after the rebuild. Thanks! |
Steps to reproduce
User A and B joins a room, both videos are working
User A disables their video
I have used
twilio-video
it in angular 8.Expected behaviour
User B sees a black screen on the TwilioVideoParticipantView (which is user A)
Actual behaviour
User B sees a frozen screen (or the last frame of the video) on the TwilioVideoParticipantView (which is user A)
Software versions:
The text was updated successfully, but these errors were encountered: