def play_route(): if 'ytb' in request.args: vlcplayer.playytb(request.args.get('ytb')) return do_return('Ok', 200) elif 'mrl' in request.args: vlcplayer.play(request.args.get('mrl')) return do_return('Ok', 200) else: return do_return('Unknown play mode', 400)
def play_offine_song(folder, file): vlcplayer.stop() vlcplayer.play(os.path.join(mountPath, folder, file)) return do_return('OK', 200)