I
I
innokentylongway2019-01-02 21:41:31
iOS
innokentylongway, 2019-01-02 21:41:31

How to prevent WKWebView from updating the data of the audio being played?

Hey!
Making an app in React Native. Embedded wkwebview, inside html5 audio.
When audio plays, the url is displayed on the lock screen on the device.
Before that, using react-native-music-control (MPNowPlayingInfoCenter) and uiwebview, it was possible to set the desired track name, picture, and activate control buttons.
Maybe someone solved this? Maybe you can subclass wkwebview and prevent it from pulling MPNowPlayingInfoCenter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-01-10
@innokentylongway

You can control content in "Now Playing Info Center" with HTML5 tags.
Try to specify title.

<audio src="" type="" controls title=""></audio>
<video src="" type="" controls webkit-playsinline x-webkit-airplay="" poster="" title=""></video>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question