diff --git a/docs/YCMediaKit.postman_collection.json b/docs/YCMediaKit.postman_collection.json new file mode 100644 index 0000000..825d7ee --- /dev/null +++ b/docs/YCMediaKit.postman_collection.json @@ -0,0 +1,131 @@ +{ + "info": { + "_postman_id": "1659c579-5b94-4c85-aabe-2bce70edad8f", + "name": "YCMediaKit", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "20749978" + }, + "item": [ + { + "name": "startToHls", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{URL}}/ffmpeg/startToHls?target=rtsp://admin:hk123456@192.168.1.65:554/Streaming/Channels/103&streamPath=live/test", + "host": [ + "{{URL}}" + ], + "path": [ + "ffmpeg", + "startToHls" + ], + "query": [ + { + "key": "target", + "value": "rtsp://admin:hk123456@192.168.1.65:554/Streaming/Channels/103" + }, + { + "key": "streamPath", + "value": "live/test" + } + ] + } + }, + "response": [] + }, + { + "name": "existsToHls", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{URL}}/ffmpeg/existsToHls?streamPath=live/test", + "host": [ + "{{URL}}" + ], + "path": [ + "ffmpeg", + "existsToHls" + ], + "query": [ + { + "key": "streamPath", + "value": "live/test" + } + ] + } + }, + "response": [] + }, + { + "name": "closeToHls", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{URL}}/ffmpeg/closeToHls?streamPath=live/test", + "host": [ + "{{URL}}" + ], + "path": [ + "ffmpeg", + "closeToHls" + ], + "query": [ + { + "key": "streamPath", + "value": "live/test" + } + ] + } + }, + "response": [] + }, + { + "name": "getToHlsList", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{URL}}/ffmpeg/getToHlsList", + "host": [ + "{{URL}}" + ], + "path": [ + "ffmpeg", + "getToHlsList" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "URL", + "value": "192.168.1.119:8888", + "type": "string" + } + ] +} \ No newline at end of file