音频发送到蓝牙音箱,IOS [英] Sending audio to a bluetooth enabled speaker, IOS

查看:674
本文介绍了音频发送到蓝牙音箱,IOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个函数添加到我的应用程序,用户可以选择播放音频的蓝牙扬声器。我有一个鹦鹉易驱在我的车和他人之间这适用于电话中和例如Dictafoon应用程序。

I want to add a function to my App, where the user can choose to play the audio on a bluetooth enabled speaker. I have a Parrot Easydrive in my car and this works for phonecalls and for example the Dictafoon App among others.

我知道我应该使用核心音频框架。当一个蓝牙设备连接据说它很容易流音频到该连接。现在我期待的核心音频采样code(或一本书),其中连接和流与核心音频蓝牙设备进行说明。

I understand that I should use the Core Audio framework. WHen a bluetooth device is connected it is said that it is easy to stream the audio to that connection. I am now looking for Core Audio sample code (or a book) where connecting and streaming to a bluetooth device with Core Audio is explained.

任何人都可以揭示出这个光?如果有另一个框架或样品code,我可以使用,请说吧!

Can anyone shed a light on this? If there is another framework or sample code which I can use please mention it!

提前感谢!

推荐答案

您不要写任何具体的核心音频code,它是相同的过程,用于通过AirPlay的播放音频。

You don't write any specific Core Audio code, it is the same process as is used to play audio via AirPlay.

基本上,你把一个<一个href=\"http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPVolumeView_Class/Reference/Reference.html\">MPVolumeView到你的UI和底层框架将重定向你的音频输出为您服务。一旦你实现这一点,你将能够使用蓝牙和其它任何的AirPlay功能的设备与应用程式。

Basically you put a MPVolumeView into your UI, and the underlying framework will redirect your audio output for you. Once you implement this you will be able to use Bluetooth and any AirPlay enabled device with your app.

这篇关于音频发送到蓝牙音箱,IOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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