Sreekanth M
Sreekanth M

Reputation: 151

How to add observer to play and pause actions for audio file in WKWebview?

I want to add notifications for play and pause actions of audio file in wkwebview, Image shows how audio files are in WKWebview

Upvotes: 0

Views: 944

Answers (1)

Adarsh
Adarsh

Reputation: 95

As mentioned in the comment, I will just put it down here as an answer. The WkWebview can handle the JS functions being used in the elements of the webView to handle those messages as per your requirement. https://stackoverflow.com/a/45063303/6727332 This is the link where you can find how to implement the same.

Upvotes: 1

Related Questions