I've searched the Internet for a while to try and find an answer to this. If you open up the multitasking bar and swipe to the left there are music controls that can be used by whatever app is playing music (ie Music, Pandora, etc.). I have not yet discovered a way to use these in my own music playing application. Does anyone know how to do that?
You should take a look at this example in the Apple API docs examples. It's basically what you want, a small audio player that interfaces with iTunes, lets you pick songs from the library and behaves much like the standard music player, including the music controls callbacks.
Related
I have a side project playing with some music controls on my iPhone. I know that i can detect volume up/down keys or track changes for Apple music app. Does anyone know if this is also possible to do for any other music apps like Spotify?
You can use the MPRemoteCommandCenter to detect the controls. I'm not sure if it will work with Spotify but it's definitely worth a shot.
I'm working on audio streaming from URLs, so currently I'm just playing audio via AVAudioPlayer but now I want to show it visually too.
I searched on CocoaControls but couldn't find any good library that can stream/play audios while showing the player controls as well as seek bar and stuff.
anything similar to this (I just need Play/Pause and Stop buttons though)
Can you please suggest any good library?
Thanks.
I'm trying to add some audio effects to an iPhone app I'm developing.
The app is a music player that allows users to choose songs from their iTunes music library. I want them to be able to carry some basic adjustments for example Bass, Middle, Treble and perhaps add some reverb. I've played around with NVDSP and looked at audio units however these don't seem to work with the iTunes library due to DRM restrictions.
Has anybody managed to achieve this? Thanks in Advance.
In the app I'm currently working on I have some videos with multiple audio tracks (in different languages) and I'd like to have the ability to switch between these tracks programmatically. There is a button that allows the user to switch between them manually (which presents this screen by tapping on it: http://i.stack.imgur.com/mkUTZ.png) so I assumed this wouldn't be too hard. However, after two hours of research I haven't found anything useful. There's this StackOverflow question that suggests it's impossible to play video with multiple audio streams in the first place, but apparently that doesn't stand true anymore. There are also some examples with AVFoundation (I haven't really looked into the), but none with MPMoviePlayer or MPMoviePlayerController.
So I'd like to know if my goal is achievable with stock MPMoviePlayerController and if not, what are the good alternatives to it.
I've a kids application which is rich in graphics.
It don't have any videos in it. Only background audio will be there
It has some activities like counting numbers, reading alphabets etc.
Can I mirror the application in apple tv using airplay so that what ever they see on iPad app must be shown on TV also?
I googled a lot... but i couldn't find any code. But I read that its possible. Can some one guide in how to proceed with this feature?
To use AirPlay your application does not necessarily have to do anything special. AirPlay is built-into iOS, and any app or game can take advantage of it. The user simply has to double-tap the Home button, swipe to the left, press the AirPlay button and select the mirroring option. This works for all apps automatically, including video and sound.