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

Is it possible to change the AudioManager's stream type from STREAM_MUSIC to something else? #1080

Open
ryotasakurada opened this issue Jul 13, 2024 · 1 comment

Comments

@ryotasakurada
Copy link

ryotasakurada commented Jul 13, 2024

Feature proposal

The audio_service feature is usually used in conjunction with music, but we plan to use it in conjunction with the calling feature. At that time, the stream type of AudioManager is fixed to STREAM_MUSIC, and the volume button cannot be used as the call volume.

If I fix change(insert) codes at

mediaSession.setPlaybackToLocal(AudioManager.STREAM_MUSIC);

mediaSession.setPlaybackToLocal(AudioManager.STREAM_VOICE_CALL);

Then it was possible to solve the problem. But it would be very nice to have it as a function.

Motivating use case(s)

When combining audio_service with uses other than music playback.

@ryanheise
Copy link
Owner

I would be open to this, but can you propose a surface API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants