[Android] [PATCH] Lower the volume of VLC when losing audio focus.
Wan Zhou
wanz at nvidia.com
Fri Nov 10 08:54:39 CET 2017
Hi,
With the VLC 2.5.8 on top box of Android N, we found an issue that all audio track's volume will be reduced when launching a voice assistance.
That is because VLC lower the system volume of STREAM_MUSIC when it receives AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.
Actually, VLC only need to turn down its own volume while losing audio focus of AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.
Please review the attached patch for details.
Thanks.
Best Regards,
Wan
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20171110/ab06acea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Lower-the-volume-of-VLC-when-losing-audio-focus.patch
Type: application/octet-stream
Size: 2689 bytes
Desc: 0001-Lower-the-volume-of-VLC-when-losing-audio-focus.patch
URL: <http://mailman.videolan.org/pipermail/android/attachments/20171110/ab06acea/attachment.obj>
More information about the Android
mailing list