Reputation:
I have a WKWebView and I need to detect if any media-content(audio/video)
started playing from WKWebView.
I am trying this method:
BOOL isOtherAudioPlaying = [[AVAudioSession sharedInstance] isOtherAudioPlaying];
. . . but all time it returns NO.
Upvotes: 3
Views: 661
Reputation:
I did a research and the answer is that there is a bug in the simulator and all entire time it will return NO.On the real device it will return YES.
Upvotes: 2