如何以编程方式播放默认电话铃声? [英] How do I play the default Phone ringtone programmatically?

查看:162
本文介绍了如何以编程方式播放默认电话铃声?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在一个会议相关的应用程序。我想显示来电的振铃通知。我试过AVAudioPlayer,它的工作罚款自定义的声音。我的问题是,是否有可能从iPhone(设置中的用户选择的铃声),并为我的应用程序播放默认铃声?

I have been working on a conference related app. I want to show ringing notification for the incoming call. I have tried with AVAudioPlayer, and it worked fine for custom sounds. My question is, is it possible to get default ringtone from iPhone (user selected tone in settings) and play for my app?

感谢您的宝贵建议...

thanks for your valuable suggestions...

推荐答案

不,没有SDK API可以获得iPhone铃声。

No, no SDK API for get iPhone ringtones.

您可以从其他链接下载并添加到您的项目

But you can download him from another links and add to your project

这篇关于如何以编程方式播放默认电话铃声?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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