是否可以通过编程方式启动电话使用扬声器? [英] Is it possible to use the speaker on programmatically initiated phone calls?

查看:97
本文介绍了是否可以通过编程方式启动电话使用扬声器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下iPhone SDK代码以编程方式启动电话:

I'm using the following iPhone SDK code to initiate a phone call programmatically:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"12345678"]];

电话启动很好,我的问题是,是否可以通过编程方式将扬声器设置为音频这个发起的电话来源?

The call is initiated just fine, my question is if it's possible to programmatically set the speaker as the audio source for this initiated phone call?

我想要实现的是呼叫将被启动并自动使用iPhone扬声器作为通话音频源。

What I'm trying to achieve is that the call will be initiated and automatically use the iPhone speaker as the call audio source.

感谢您的帮助!

推荐答案

这是不可能的。您只能使用您描述的方法发起呼叫,但如果没有私人API,则无法执行任何其他操作。

That's not possible. You can only initiate calls using the method you described but you can't do anything else without private api.

这篇关于是否可以通过编程方式启动电话使用扬声器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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