From 3066dbcdd863342d3c9534886434d6e8aaa45367 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 4 Jan 2022 14:13:49 +0100 Subject: Added playback volume notification to VLC player --- player_mock.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player_mock.py') diff --git a/player_mock.py b/player_mock.py index 2fd343f..ee3801d 100644 --- a/player_mock.py +++ b/player_mock.py @@ -46,7 +46,10 @@ class Player(): return self.position def setPlaybackVolume(self, volume): + changed = self.volume != volume self.volume = volume + if changed: + self.playbackVolumeChangedCallback() def getPlaybackVolume(self): return self.volume -- cgit v1.2.3