WebRTC-Android-SDK icon indicating copy to clipboard operation
WebRTC-Android-SDK copied to clipboard

Choose Bluetooth Headphone As AudioDevice

Open lastpeony opened this issue 1 year ago • 0 comments
trafficstars

If a Bluetooth headphone is available, select it as the audio device. If the user specifies, request permission for Bluetooth before playing.

To indicate a preference for using Bluetooth headphones if available, users should set requestBluetoothForPlay = true in the .play() call.

Currently, requesting permission on play/publish causes an ANR crash due to waitForWSHandler(). This issue is known and addressed in a separate PR.

In my opinion, handling permissions within the SDK is not the correct approach. We should consider moving them out of SDK. This PR maintains the current pattern and manages permissions within the SDK.

https://github.com/ant-media/Ant-Media-Server/issues/6232

lastpeony avatar Apr 18 '24 12:04 lastpeony