Reputation: 151
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
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