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()
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()