简体   繁体   中英

Twllio : Play Sound during call

I want play sound during call, so receiver will able to listen that sound.

Suppose, I am in office, And I want play sound of traffic during Twilio Call. Is this possible using Twilio in iOS ?

If I select button to play traffic sound, then only receiver can able to listen the same. If receiver select to play sound of Party, then only caller can listen that sound, not both the parties.

If yes, What are the possible ways to implement the same.

Twilio developer evangelist here.

You could use <Conference> in this scenario. You would then dial both of your callers into a conference. Then have Twilio dial a third call into that conference and have that call <Play> the audio into the conference.

That however will play to all the parties on the call (ie both caller and receiver will be able to hear the third party call). You could then add logic to your application using the <Gather> verb to check whether a button has been pressed and then drop that third party call and add another one.

I know this doesn't do everything you want as it will play on both sides, but is very close to what you're trying to do.

Hope this helps you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM