本文介绍了是否可以创建一个应用程序,可以在电话呼叫开始和结束时拨打电话和播放声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做以下任务:


  1. 在与朋友的对话中(即收到来电时)从我的手机播放声音,以便另一部手机上的其他人可以听到它。 (通话开始通知)

  1. While on a conversation with a friend, (ie when call is received) play a sound from my phone so the other person on the other phone can hear it. (Call began notice)

当通话结束时,播放挂起的声音就像我们以前在座机电话中所说的那样。 (通话结束通知)。

When the call is ended, play hung up sound like we used to have in our Landline telephone. (Call ended notice).

所以,我正在考虑这样做创建我自己的电话应用程序,如iPhone有默认情况下。但问题是这是可行的吗?我已经浏览了几个与这个主题相关的帖子,似乎我有可能。

So, I was thinking of doing this creating my own phone call apps like iphone has by default. But the question is this be feasible? I have gone through several posts related to this topics and it seems me possible.

任何人都可以告诉我它有多大可行?大多数帖子说,在通话结束后,我无法控制我的应用程序,但有些人说使用AVAudioPlayer的代表可能会播放声音。

Can anyone please tell me how much is it feasible? Most posts says after call ended, I have no control over my app, but some says there is possibility so play sound using AVAudioPlayer's delegate.

请告知我技术上是否可行?如果我现在开始但是应用程序无法在appstore中获得苹果的批准,那么我将完全毁了。所以,在开始之前,我需要一些帮助。

Please inform me whether it is technically feasible or not? If I started it now but is not possible for app to get approval from apple in appstore then I will be totally ruined. So, before getting started, I need some help.

推荐答案

不幸的是,不,你不能。除了拨打电话,Apple不允许您执行与电话相关的任何操作。唯一的方法是,如果你做一些互联网电话,如Skype电话。但这不像普通的电话。

Unfortunately, no, you can't. Apple doesn't allow you to do anything related to phone calls, other than start a call. The only way is if you do some kind of over-the-internet call, like a skype phone. But that won't be like a normal phone call.

这篇关于是否可以创建一个应用程序,可以在电话呼叫开始和结束时拨打电话和播放声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 19:47