播放音乐/广告通话时ONHOLD Android中 [英] Play a music / advertisement when the call is onHold in Android

查看:214
本文介绍了播放音乐/广告通话时ONHOLD Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您将呼叫者搁置。应用程序应播放音乐/一些自定义的信息到接收器在后台,直到通话处于保持。一旦呼叫被激活,应停止音乐/自定义消息。是否有任何可用的API这样做呢?

When you place callers on hold. The application should play music / some custom message to the receiver in the background, till the call is in hold. Once the call becomes active, that music / custom message should be stopped. Is there any API's available to do so ?

如果是这样,请让我知道几个步骤来继续前进。

If so,Please let me know few steps to take it forward.

在此先感谢。

推荐答案

安卓不允许你在通话过程中修改输出音频流。即使呼叫处于保持状态,它仍然被认为正在进行的通话。你能做的最好是玩任何你想要在扬声器并希望麦克风选了。

Android does not allow you to modify the outgoing audio stream during a call. Even though the call is on hold, it is still considered an ongoing call. The best you can do is to play whatever you want to over the loudspeaker and hope the microphone picks it up.

这篇关于播放音乐/广告通话时ONHOLD Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆