播放音乐/广告通话时ONHOLD Android中广告、音乐、Android、ONHOLD

由网友(遇见你时风好甜)分享简介:当您将呼叫者搁置。应用程序应播放音乐/一些自定义的信息到接收器在后台,直到通话处于保持。一旦呼叫被激活,应停止音乐/自定义消息。是否有任何可用的API这样做呢?When you place callers on hold. The application should play music / some custom...

当您将呼叫者搁置。应用程序应播放音乐/一些自定义的信息到接收器在后台,直到通话处于保持。一旦呼叫被激活,应停止音乐/自定义消息。是否有任何可用的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.

阅读全文

相关推荐

最新文章