Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose Bluetooth Headphone As AudioDevice #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lastpeony
Copy link
Contributor

@lastpeony lastpeony commented Apr 18, 2024

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.

ant-media/Ant-Media-Server#6232

@lastpeony lastpeony requested a review from burak-58 April 18, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant