Questions about iPhone Bluetooth earphones

I am currently a developer developing iOS apps.
When you access WebView WEBRTC while wearing Bluetooth earphones on your iPhone 15, sound comes out through the iPhone speaker, not the earphone speaker.
I confirmed that it works normally when I run the app on Android.

I would like to know if there is a solution to this problem.

The settings in use are below.

build pc : macbook pro 14
Unity version : 2021.3.39f1
xcode : 14




I think it may be possible to write code to change the audio output destination using the WebView WebRTC JavaScript API, but it depends on how you are using WebView WebRTC.

The web view currently in use is vuplex web view, and in the case of WEBRTC, mediasoup is used.

A reference link has been added below.

I’m not sure how to edit it, so I’m adding additional information.

Webview Unity Asset Store: 3D WebView for Android and iOS (Web Browser) | GUI Tools | Unity Asset Store

WEBRTC mediasoup official website: https://mediasoup.org/

Currently webrtc is using the link below

In Vuplex, the audio output appears to be sent directly to the system, and it does not appear that the output destination can be changed using the JavaScript API.