def seek_handler(event, earphone_event_object): instance = vlc_http() while( not(earphone_event_object.trigger_hold_stop) ): # seek 5s in every 1s instance.seek(5) time.sleep(1)
def play_handler(event): instance = vlc_http() instance.play_pause()