()
| 13 | |
| 14 | |
| 15 | def test(): |
| 16 | ip = 'localhost' |
| 17 | port = '8085' |
| 18 | video_path = 'rtsp://127.0.0.1:8554/vehicle.ts' |
| 19 | video_path = urllib.parse.quote(video_path, safe='') |
| 20 | url = 'http://{}:{}/start/{}'.format(ip, port, video_path) |
| 21 | |
| 22 | res = requests.post(url) |
| 23 | ret = res.content |
| 24 | print(ret) |
| 25 | |
| 26 | |
| 27 | if __name__ == "__main__": |