From 535c4bbc175fa520bb3871a0d1fcd70a230e4a63 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 2 Feb 2019 16:11:31 +0100 Subject: [PATCH] Added set_volume action to mplayer plugin --- platypush/plugins/media/mplayer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index bbb141596..05afe6088 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -317,6 +317,16 @@ class MediaMplayerPlugin(MediaPlugin): """ return self.set_property('time_pos', position) + @action + def set_volume(self, volume): + """ + Set the volume + + :param volume: Volume value between 0 and 100 + :type volume: float + """ + return self._exec('volume', volume) + @action def get_property(self, property, args=None): """