示例#1
0
文件: video.py 项目: vgrillot/mpf-mc
    def is_loaded(self):
        self.loading = False
        self.loaded = True
        self.unloading = False
        self._video = Video(filename=self.file)
        self._video.bind(on_load=self._check_duration)

        self._call_callbacks()
示例#2
0
    def is_loaded(self):
        self.loading = False
        self.loaded = True
        self.unloading = False
        self._video = Video(filename=self.file)
        self._video.bind(on_load=self._check_duration)

        if isinstance(self._video, VideoNull):
            raise AssertionError(
                "Kivy cannot load video {} because there is no provider.".
                format(self.file))

        self._call_callbacks()