I'm developing a WebKit-based mac application: a native Cocoa app that consists mostly of a WebView. The app needs to play audio and do simple DSP. I'd like to use the Web Audio API for this.
When I open a Web Inspector on my WebView, I'm told that window
has a property calledwebkitAudioContext
, but this property is set to undefined
.
> window
[...]
webkitAudioContext: undefined
[...]
This suggests that the Web Audio API isn't supported in WebViews by default. Is there a way to enable it?
Are WebKit feature flags involved somehow?