Capturing WKWebView audio for measurement

I am currently working on an application containing WKWebView

where I have uploaded an iFrame with YouTube video streaming.

I would like to be able to create an audio renderer that is shown next to this iFrame and moves in response to audio from the stream.

I've been following this tutorial Ray Wenderlich to create a music visualizer, but in the textbook used setMeteringEnabled

and updateMeters

built into the function AVAudioPlayer

.

Is there a way to measure the sound coming from WKWebView

? I just want an average volume level, not the actual audio stream.

I tried looking at libraries like Amazing Audio Engine , but none of them seem to allow you to grab a channel coming from WKWebView

at all, let alone measurement purposes.

+3


source to share





All Articles