mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -27,7 +27,8 @@ class AudioSessionHandler {
|
||||
switch (event.type) {
|
||||
case AudioInterruptionType.duck:
|
||||
PlPlayerController.setVolumeIfExists(
|
||||
(PlPlayerController.getVolumeIfExists() ?? 0) * 0.5);
|
||||
(PlPlayerController.getVolumeIfExists() ?? 0) * 0.5,
|
||||
);
|
||||
// player.setVolume(player.volume.value * 0.5);
|
||||
break;
|
||||
case AudioInterruptionType.pause:
|
||||
@@ -45,7 +46,8 @@ class AudioSessionHandler {
|
||||
switch (event.type) {
|
||||
case AudioInterruptionType.duck:
|
||||
PlPlayerController.setVolumeIfExists(
|
||||
(PlPlayerController.getVolumeIfExists() ?? 0) * 2);
|
||||
(PlPlayerController.getVolumeIfExists() ?? 0) * 2,
|
||||
);
|
||||
// player.setVolume(player.volume.value * 2);
|
||||
break;
|
||||
case AudioInterruptionType.pause:
|
||||
|
||||
Reference in New Issue
Block a user