def fire_state_change(self): assert threading.current_thread() == threading.main_thread() dispatchers.player.playing_state_changed(self.is_playing)