IOS - check if iTunes Radio is playing

I try to avoid using multiple audio sources at the same time when a user uses my application.

I check if music is playing using (MPMusicPlayerController *) iPodMusicPlayer ref: https://developer.apple.com/library/ios/documentation/mediaplayer/reference/MPMusicPlayerController_ClassReference/Chapters/Reference.html#//apple_ref/occ/ / MPMusicPlayerController / iPodMusicPlayer

But apparently he is not checking to see if Apple plays iTunes radio. The iTunes radio app is only available for Apple Apple accounts.

Is there a way to check if sound is playing using iTunes Radio?

+4
source share

Source: https://habr.com/ru/post/1531334/


All Articles