MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / test

Function test

flow-python/examples/application/misc/video_client.py:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def 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
27if __name__ == "__main__":

Callers 1

video_client.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected