I've created peer to peer video chat using Twilio Programmable Video. I want to check if remote participant disabled video track and show avatar of that user for local participant in this case. How can I do it? Is there some event I can subscribe to know it?
Twilio developer evangelist here.
You are looking for the RemoteParticipant's trackUnpublished event.
trackDisabled event allows to check if remote participant disabled video
Related
I have a scenario wherein I would need to mute some of the remote participants in the video call in my local machine. Example of this use case is when I want to be able to just hear a remote participant that is presenting and no else.
Solution I found online is to muted as stated here: https://github.com/twilio/twilio-video.js/issues/363.
Muting the html element appears to work but I'm just curious if there is a Twilio method that can achieve the same result?
At this time, the SDK does not provide a native ability to mute remote tracks. Only the local participant can disable their own tracks.
A solution to this problem is the track subscription API. This API allows you to make a request to update a certain participant's subscribe rules so you can programmatically unsubscribe users from tracks. For your use case, you can could hit this API to unsubscribe participants from specific users in the room, or unsubscribe all participants from all tracks except the presenter.
More info on this can be found here: https://www.twilio.com/docs/video/api/track-subscriptions
Let me know what you think!
It seems Twilio Programmable Video API is based on WebRTC. This will allow us to setup audio/video conference from browser/app to browser/app.
However, is there any way to connect Programmable Voice incoming audio calls to the Video rooms? Also is there any way to make outgoing Voice calls from the Rooms?
This will allow a participant to just dial-in even if his internet is not working.
Twilio developer evangelist here.
It is not currently possible, using the Video SDK, to dial into a Video Group Room from an audio call over the phone network. If that changes I will update this answer.
Is it possible to select which participants to listen in a conference as a moderator?
In other words just mute a participant for the moderator not for all the other participants.
Twilio developer evangelist here.
The short answer is: no.
The slightly longer answer is:
Conference calls are all mixed together on a media server, not shared peer to peer. If one user is muted, they are muted for everyone as they are muted at that stage.
Creating a service involving broadcasting video from one to many, similar to twitch.tv. Can twilio handle this?
Twilio developer evangelist here.
Twilio Video is not designed to broadcast one to many like Twitch. The maximum number of participants in a Twilio Video Group Room is 50 and for a peer to peer Room is 10.
Edit:
Twilio has launched Twilio Live, which is designed for broadcast use-cases. Check it out to see if it works for you.
We're using Twilio Programmable Video and we'd like to set up:
- A ringtone while a participant is waiting in the room.
- A "ringing" to notify the other side that a participant is waiting in the room.
All in all, a performance like a voice call.
We have checked API Reference, AudioTrack and Media section, without success. (https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta4/docs/)
Any idea to configure this performance?
Regards,
Carlos
Twilio developer evangelist here.
There is no functionality in the Twilio API for providing a ring tone, however you could implement it yourself.
You would need to send an invite to the participant that hasn't entered the room yet. You could do that with a server sent event or websocket. Then you would play the ringtone (using an <audio> element or the web audio API) until the user entered the room themself, at which point you would stop playback of the ringtone.
Let me know if that helps at all.