I have a WKWebView and I am checking if audio is playing using
[[AVAudioSession sharedInstance] isOtherAudioPlaying]
I tried to get some information about it using :
[MPNowPlayingInfoCenter defaultCenter] nowPlayingInfo]
but it was nil.
Then I tried:
[[MPMusicPlayerController systemMusicPlayer] nowPlayingItem]
and it was also nil.
How can I get URL of current playing audio?