iphone - Is it possible to interject your own audio once the ios media library has taken over? -


i wondering if possible insert own audio once ios media library has taken on in app?

example: playing piece of audio after every song says number of songs you've listened day.

i know because framework there many things let do.

this should doable. start, can add class observer of mpmusicplayercontrollernowplayingitemdidchangenotification informed when song in ipod library changes. there, can tell ipod library pause, play track, , resume music playback afterwards.

[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(somesel:) name:mpmusicplayercontrollernowplayingitemdidchangenotification object:nil];   [[mpmusicplayercontroller ipodmusicplayer] pause];     // play sound [[mpmusicplayercontroller ipodmusicplayer] play]; 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -