def rtsp_para(scource): if scource.split('://')[0] == 'rtsp': return True else: return False