diff --git a/platypush/plugins/video/omxplayer.py b/platypush/plugins/video/omxplayer.py index 96df27f8..9da2d36e 100644 --- a/platypush/plugins/video/omxplayer.py +++ b/platypush/plugins/video/omxplayer.py @@ -128,6 +128,8 @@ class VideoOmxplayerPlugin(Plugin): return self.status() def set_volume(self, volume): + # Transform a [0,100] value to an OMXPlayer volume in [-6000,0] + volume = 60.0*volume - 6000 if self.player: self.player.set_volume(volume) return self.status()