通过蓝牙共享音频
我想在我的 iPad 应用程序中编写一个函数,它允许我通过蓝牙将 iPad 上选择的音乐传输到连接的游戏接口(iPod、iPhone...)。有谁知道一个简单的解决方案或者可能想分享一些示例代码?
感谢您的帮助!
I want to write a function in my iPad App, which allows me to stream the music choosen on iPad to the connected Game-Interfaces (iPod, iPhone...) via bluetooth. Does anyone knows a simple solution or maybe wants to share some sample code?
Thanks for help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在做一些非常相似的事情。我的 iPhone 连接到多个设备以向它们传输音频,但我希望传输音频的设备也能播放音频。
您可以查看 GameKit API 中的 GKSession,这应该会给您一个良好的开端。
也可能是 openAl,但我认为这可能有点过分了。我听说 Core Audio 有一个针对蓝牙设备的内置功能,可以通过它们连接来播放音频,但我认为这不适用于 iPhone、iPad、iTouch 等......
我还创建了自己的对等连接接口,使我能够查看正在运行我的应用程序的多个蓝牙设备。然后我可以单击每一个,然后每个都连接起来。然后我添加了一个测试,将短信推送到所有连接的设备进行测试。接下来我需要了解如何将音频流式传输到连接的苹果设备。
如果有人有任何这方面的信息,我相信我们都会很感激。
I am doing something very similar. I have my iphone connecting to multiple devices to stream audio to them, but I want the device that is streaming the audio to also play audio as well.
You can look into the GKSession in the GameKit API and that should give you a good start.
Also maybe openAl, but I think that might be a little overboard. I heard Core Audio has a built in feature for bluetooth devices that are connected to play audio through them but I dont think this goes for iPhone, iPad, iTouch etc....
I have also created my own peer connection interface that allows me to see multiple bluetooth devices that are running my app. I then can click each one and each gets connected. I then I added a test to push a text message to all connected devices for testing. Next I need to find out how to stream audio to the connected apple devices.
If anyone has any info on this I am sure we would both appreciate it.