bugfix
This commit is contained in:
parent
ad07888209
commit
adfda12530
@ -6,15 +6,17 @@ from kivy.properties import BooleanProperty
|
|||||||
|
|
||||||
from ffpyplayer.tools import set_log_callback
|
from ffpyplayer.tools import set_log_callback
|
||||||
|
|
||||||
|
from kivyblocks.bgcolorbehavior import BGColorBehavior
|
||||||
logger_func = {'quiet': Logger.critical, 'panic': Logger.critical,
|
logger_func = {'quiet': Logger.critical, 'panic': Logger.critical,
|
||||||
'fatal': Logger.critical, 'error': Logger.error,
|
'fatal': Logger.critical, 'error': Logger.error,
|
||||||
'warning': Logger.warning, 'info': Logger.info,
|
'warning': Logger.warning, 'info': Logger.info,
|
||||||
'verbose': Logger.debug, 'debug': Logger.debug}
|
'verbose': Logger.debug, 'debug': Logger.debug}
|
||||||
|
|
||||||
|
|
||||||
class NewVideo(Video):
|
class NewVideo(BGColorBehavior, Video):
|
||||||
def __init__(self,**kw):
|
def __init__(self,**kw):
|
||||||
super(NewVideo, self).__init__(**kw)
|
Video.__init__(self, **kw)
|
||||||
|
BGColorBehavior.__init__(self)
|
||||||
Window.allow_screensaver = False
|
Window.allow_screensaver = False
|
||||||
set_log_callback(self.ffplayerLog)
|
set_log_callback(self.ffplayerLog)
|
||||||
if hasattr(self._video, '_ffplayer'):
|
if hasattr(self._video, '_ffplayer'):
|
||||||
|
Loading…
Reference in New Issue
Block a user