Added set_volume action to mplayer plugin

This commit is contained in:
Fabio Manganiello 2019-02-02 16:11:31 +01:00
parent d0a288b423
commit 535c4bbc17

View file

@ -317,6 +317,16 @@ class MediaMplayerPlugin(MediaPlugin):
""" """
return self.set_property('time_pos', position) 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 @action
def get_property(self, property, args=None): def get_property(self, property, args=None):
""" """