user7067775
user7067775

Reputation:

Detect if media-content started playing from WKWebView

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

Answers (1)

user7067775
user7067775

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

Related Questions