Media Viewer: Unmute on volume change (#1792)
This commit is contained in:
parent
eacda58152
commit
c9cc588704
@ -127,10 +127,9 @@ const AudioPlayer: FC<OwnProps & StateProps> = ({
|
||||
|
||||
const handleVolumeChange = useCallback((value: number) => {
|
||||
setAudioPlayerVolume({ volume: value / 100 });
|
||||
setAudioPlayerMuted({ isMuted: false });
|
||||
|
||||
setVolume(value / 100);
|
||||
}, [setAudioPlayerMuted, setAudioPlayerVolume, setVolume]);
|
||||
}, [setAudioPlayerVolume, setVolume]);
|
||||
|
||||
const handleVolumeClick = useCallback(() => {
|
||||
if (IS_TOUCH_ENV && !IS_IOS) return;
|
||||
|
||||
@ -45,6 +45,7 @@ addActionHandler('setMediaViewerVolume', (global, actions, payload) => {
|
||||
mediaViewer: {
|
||||
...global.mediaViewer,
|
||||
volume,
|
||||
isMuted: false,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
@ -185,6 +185,7 @@ addActionHandler('setAudioPlayerVolume', (global, actions, payload) => {
|
||||
audioPlayer: {
|
||||
...global.audioPlayer,
|
||||
volume,
|
||||
isMuted: false,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user