bugfix
This commit is contained in:
parent
683add23ce
commit
2bf1a26cad
@ -85,6 +85,8 @@ class BaseVPlayer(FloatLayout):
|
|||||||
def on_state(self,o,v):
|
def on_state(self,o,v):
|
||||||
if self._video.state == 'play':
|
if self._video.state == 'play':
|
||||||
Window.allow_screensaver = False
|
Window.allow_screensaver = False
|
||||||
|
if hasattr(self._video._video, '_ffplayer'):
|
||||||
|
self.ffplayer = self._video._video._ffplayer
|
||||||
else:
|
else:
|
||||||
Window.allow_screensaver = True
|
Window.allow_screensaver = True
|
||||||
print('onstate()',o,v,self._video.state)
|
print('onstate()',o,v,self._video.state)
|
||||||
@ -157,8 +159,8 @@ class BaseVPlayer(FloatLayout):
|
|||||||
def audioswitch(self,btn):
|
def audioswitch(self,btn):
|
||||||
print('*********AUDIOSwitch 1**************', self.ffplayer)
|
print('*********AUDIOSwitch 1**************', self.ffplayer)
|
||||||
if self.ffplayer is not None:
|
if self.ffplayer is not None:
|
||||||
print('*********AUDIOSwitch 2**************')
|
x = self.ffplayer.request_channel('audio')
|
||||||
self.ffplayer.request_channel('audio')
|
print('*********AUDIOSwitch 2**************',x)
|
||||||
|
|
||||||
def setVolume(self,obj,v):
|
def setVolume(self,obj,v):
|
||||||
self._video.volume = v
|
self._video.volume = v
|
||||||
|
Loading…
Reference in New Issue
Block a user