Using Gamekit to Share Music Between Devices - ios

Is there a way that I can develop an application that uses GameKit to share the music currently playing on another device?
The connection part using GameKit isn't the problem. It's the sharing music part that I'm having a problem with. Any ideas?

After doing some research I realized that it is technically possible but because of copyright issues Apple won't allow it. In theory you can connect the 2 devices via GameKit and then get the MPMediaPropertyAssetURL for an audio item in the library, and open it with AV Foundation. You could use the AVAssetReader to read from the file and then stream them over the GameKit connection. So technically it's possible but legally might not be allowed! Hope this helps someone!

Related

How to manage multiple Airplay receivers on iOS?

I want to create an app that can play music from my iOS device to multiple Airplay speakers. I know that MPVolumeView natively lets you do this on 1 Airplay receiver, so that is not the solution I need. There is an iOS app in the store that does this: Whaale.
How do they do it? I am happy to use private APIs, as I do not plan to release this as a public app right now.
While I cannot answer specifically, I can point you to a few things I've discovered:
- There are a few apps that do this for IOS.
- All of them have the limitation that they can only stream music that is not through itunes and that exist on the device as music files.
- no streaming is available (Pandora, Spotify, etc.)
Good Luck!
Robert

How to connect to a remote device using A2DP on iPhone

I want to connect to a Bluetooth device and have my app send to it audio over A2DP.
So my question is:
How to scan for a bluetooth device?
How to pair with it ?
How to send audio to the paired device?
I am familiar with Corebluetooth but its not compatible for Bluetooth that is not low energy, so what framework should i use?
Should the user connect the device throw the settings of the app or can my deal with that?
I know there is a lot of questions but all the information that i found was for android.
Thank you!
Hi let me answer your questions one by one
first of all you dont use CoreBluetooth
you will use AVFoundation and/or CoreAudio (which is a really huge framework with AudioUnits and AudioQueue and much more)
BUT if you just want to play Audio you may not need to dive into CoreAudio
AVFoundation is built on CoreAudio and can easily play and record from Bluetooth devices
How to send audio to the paired device?
Core Audio and AVFoundations both have mechanism for getting and sending audio to Bluetooth Audio devices from/to your iphone
How to scan for a bluetooth device and How to pair with it ?
this is done via Bluetooth Settings in your iphone.you just trun yout BT Speaker ON and search then you Pair it for future use
hope this helps

iOS playback RTMP with AVFoundation

I need to implement an iOS app that playback RTMP with AV. Exists any library for this propose? I have bean searched on Internet but I didn't found nothing or any example.
I think that I must capture frames and decodec because iOS don't playback rtmp.
I haven't got idea to where start
There are few providers i had come across few months back.
You might want to refer them.
cine.io
VideoStream SDK for iOS
Brightcove Player SDK for iOS
RealTimeLibs
All of above are paid ones.
There are also some open source libs:
RTMP-Wrapper
MediaLibDemos
Hope this helps you.

AudioUnit Echo Cancellation Built-in Feature for iOS

Currently I am developing an iOS app that captures the sound using iPad mic. At the same time, a sound is being played through iPad speakers. Since the objective is to process the isolated input sound, the speaker feedback should be removed (cancelled). I looked for some documentation related to AudioToolbox possibilities. I found out AudioUnit can perform Built-in Features such as echo cancellation. However, I did not manage to configure correctly my audio graph in order to achieve a successful performance.
I would appreciate any suggestion, sample codes, references to tutorials or recommended bibliography.
Thank you very much,
Carles

iOS Gamekit Blutooth 4+ Players?

I want to make a multiplayer game that will allow 4 people to connect their iphones together via bluetooth and play a realtime networked game.
I've been reading and reading about this, but cannot find out if it is possible. I have found documents demonstrating how you connect 2 devices via bluetooth, but I want to connect 4. Is this possible?
Can it be a host client setup, or does it have to be p2p?
Has anyone gone about implementing a 4 player multiplayer ios game over bluetooth? Can you give me any advice on how this is possible?

Resources