aboutsummaryrefslogtreecommitdiffstats
path: root/player_mock.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-04 14:13:49 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-04 14:13:49 +0100
commit3066dbcdd863342d3c9534886434d6e8aaa45367 (patch)
treefa079c5e4772ef75589e2d23cc5af1bfa445c284 /player_mock.py
parent88d34ded021ac61e2440720fd3deb2cf3eef21e4 (diff)
Added playback volume notification to VLC player
Diffstat (limited to 'player_mock.py')
-rw-r--r--player_mock.py3
1 files changed, 3 insertions, 0 deletions
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