From 797470e088b40c42588eb6e4ee1cde03305b8a55 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 24 Dec 2019 18:35:55 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 4bbac15..b530735 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -316,7 +316,7 @@ class VPlayer(FloatLayout): height = CSize(2), width = CSize(10), step=0.07) - slider.bind(on_value=self.setVolume) + slider.bind(on_touch_up=self.setVolume) self.menubar.add_widget(slider) self.menubar.add_widget(self.pb) self.menubar.pos = CSize(0,0) @@ -338,9 +338,9 @@ class VPlayer(FloatLayout): if self.ffplayer is not None: self.ffplayer.request_channel('audio') - def setVolume(self,obj,v): + def setVolume(self,obj,touh): print('setVolume() called .....',v) - self._video.volume = v + self._video.volume = obj.value def mute(self,btn): if self._video.volume > 0.001: