aboutsummaryrefslogtreecommitdiffstats
path: root/player_vlc.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_vlc.py
parent88d34ded021ac61e2440720fd3deb2cf3eef21e4 (diff)
Added playback volume notification to VLC player
Diffstat (limited to 'player_vlc.py')
-rw-r--r--player_vlc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/player_vlc.py b/player_vlc.py
index 9f8bb56..a7244bb 100644
--- a/player_vlc.py
+++ b/player_vlc.py
@@ -48,4 +48,7 @@ class Player:
manager = self._player.event_manager()
for e in events:
manager.event_attach(e, callback)
- self._playingStateChangedCallback = callback
+
+ def setPlaybackVolumeChangedCallback(self, callback):
+ manager = self._player.event_manager()
+ manager.event_attach(vlc.EventType.MediaPlayerAudioVolume, callback)