Carlos R.
Carlos R.

Reputation: 51

Video Twilio - Setting up a Ringtone for videocalls

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

Upvotes: 4

Views: 1332

Answers (1)

philnash
philnash

Reputation: 73055

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.

Upvotes: 2

Related Questions