ios - Does AVPlayer stop the user's music? -
i want know -- happens user's music when avplayer starts play? nothing happen, stop, or action cancel itself? if so, how check , see if user playing music?
apple's documentation confused me.
alright, looking info this, seems avaudioplayer objects interrupts user's audio if app's avaudiosession's category set solo ambient, default.
i saw answer: app avplayer plays mp4 interrupt ipod music after launched
i saw table in apple developer documentation explains whether or not different categories interrupt user's music, examples of different scenarios, including 1 game: https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/sound.html#//apple_ref/doc/uid/tp40006556-ch44-sw1
in order not interrupt user's music, need set ambient.
Comments
Post a Comment