How to get audio from AppleWatch like Shazam does? - ios

Recently I have realized that Shazam has developed an AppleWatch application but in many questions and answers in StackOverflow, we have talked about the no possibility of recording audio directly from your watch.
Does a new way exist to do it?

The Shazam app simply activates the app on your phone. The WatchKit SDK doesn't allow access to the mic. They mention this in their marketing materials and such.

Related

How to skip ads in youtube iOS app automatically when video is playing?

We want to develop and iOS app which can be able to skip YouTube ads while YouTube video is playing in iOS APP. This app runs in background while video is playing. Our Android team develop this app because android gives them a system level permission to skip ads. Is there any OS level permission in iOS to skip ads?
Unfortunately I don’t think that’s actually possible.
In order to have an app run in the background like that, you would probably have to be jailbroken or have root access. To skip a youtube ad as well as that, that sounds impossible, unless Youtube has some sort of system in place allowing other apps to add functionality to the Youtube app.
There are apps that connect with the Safari app and block certain things on webpages, but none skip youtube ads, they just block them.
With a jailbroken iOS device, I have seen many tweaks which do things similar to this, but I haven’t yet seen a tweak which actually skips the ad the way you want.
Considering this, your request may be impossible with the current nature of iOS.
Anybody please correct me if I’m wrong about any of this.

iPhone App: "Inject" audio files into phone conversation

After Googleing and looking through StackOverflow, I haven't found a suitable solution to "inject audio from an iPhone app into an ongoing phone conversation."
As an iPhone app dev newbie, I found Intercepting phone call - iPhone (correct method to hook in CoreTelephony), but I don't want to do ant jailbreaking. I want my iPhone app to insert pre-recorded phrases and noise effects into an ongoing phone conversation.
Can anyone tell me where I would start with that? Any hints, links or just some "general direction" advice would be much appreciated.
The iOS security sandbox actively prevents any (non-Apple) app from injecting audio into another app, such as the Phone app, where inter-app audio is not explicitly supported.

Play Apple Music through 3rd party app on tvOS?

As we can play apple music songs by third party applications on iOS.
As we know Apple given Apple Music Support on tvOS as well. So is it possible to play Apple Music songs from my tvOS application like iOS
On Apple Documentation here it is clearly said that Apple Music is only possible to play by using MPMusicPlayerController but it seems that Apple haven't given access of MPMusicPlayerController in tvOS
any idea.
Short Answer: No, you are not able to play music from Apple Music in your own apps.
Music Library
MPMusicPlayerController and the rest of the MediaPlayer.framework are a set of classes that allow you to play (and browse) the users Music Library.
The Music Library is actually different to Apple Music, it's the collection of music stored on the users device. This could be music purchased through the iTunes store, songs synced through iTunes on a computer or tracks from Apple Music downloaded to the device for offline playback.
Because the Apple TV isn't a portable device, it doesn't really make sense to have a physical music library on the device (it's permanently connected to the internet) so without a physical music library there is no point giving developers access to it.
This is why MPMusicPlayerController isn't available on tvOS.
Apple Music API
If however you wanted access to an actual Apple Music API (like the one Sonos use), you are also out of luck i'm afraid.
This API allows third parties to connect with the Apple Music platform and allow streaming of music directly from Apple's servers however as far as i've seen, Apple only work with select manufacturers (currently only Sonos that we know of) and it doesn't really make sense for them to open something like that up to the public.
With multitasking and the ability to play Apple Music already on the Apple TV already there isn't really a reason why Apple should need to give developers access to play Apple Music within their own apps.
Own Music
If you actually wanted the ability to play your own music files on tvOS, you could do this using AVAudioPlayer.
The Apple Music API is iOS only and isn't (yet) available for apps written for tvOS.

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

Turn iOS Device into AirPlay Speaker

I'm fiddling with an app, and I'm also aware that apps made by developers that allow an iOS Device to receive an audio stream from another iOS Device or iTunes. So I'd like to implement it and possibly find a method within Apple's guidelines, allowing audio to be streamed. I've tried looking for everything, but I can't find where to start. Any ideas, a place to start, maybe even a point of direction would be great.
chekout the airspeaker project on github.
https://github.com/chenkaigithub/AirSpeaker
I was able to run it on iOS simulator 6.0 and then use my iphone to stream audio.
However if I try to stream from iTunes 11 it does not work ( iTunes lists the device in airplay list but , on selection , prompts with error "airplay device is not compatible with this version of iTunes." )

Resources