I was curious if there was a way of telling if audio is coming from a specific WKWebView similar to the way you can find the tab playing audio in Chrome and Safari?
1 Answers
Answers 1
In the WKWebView's delegate, after webview loading finished, execute javascript that addEventListener
to audio
and video
tag with event play
, pause
, ended
. Then check the playback state for purpose.
0 comments:
Post a Comment