I open the feedback page failed. so I decide post the content here.
How to change the audio route in the WKWebview ?
I have an app that uses WebRTC in a WKWebView.
I want to control the audio output route, either speaker or receiver.
I used a JS Bridge to Objective-C code, but it didn't work.
Here is a minimal example project demonstrating that the Objective-C
code cannot control the audio output route inside the WKWebView.
the project file is https://www.ayi9.com/xx/test/test.zip
What needs to be done to achieve my goal?
I use iOS 16.7 for test. Should I change my iPhone for a new version of iOS ?
Topic:
Media Technologies
SubTopic:
Audio