forked from illuspas/Node-Media-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_api.http
More file actions
34 lines (26 loc) · 867 Bytes
/
Copy pathtest_api.http
File metadata and controls
34 lines (26 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
### get all relay tasks
GET http://127.0.0.1:8000/api/relay HTTP/1.1
Authorization: Basic admin:admin
### create relay pull task
POST http://127.0.0.1:8000/api/relay/pull HTTP/1.1
Authorization: Basic admin:admin
Content-Type: application/x-www-form-urlencoded
app=live
&name=bbb
&url=rtmp://192.168.0.2/live/bbb
### create relay push task
POST http://127.0.0.1:8000/api/relay/push HTTP/1.1
Authorization: Basic admin:admin
Content-Type: application/x-www-form-urlencoded
app=live
&name=bbb
&url=rtmp://192.168.0.2/live/bbb2
### create relay task
POST http://127.0.0.1:8000/api/relay/task HTTP/1.1
Authorization: Basic admin:admin
Content-Type: application/x-www-form-urlencoded
path=rtmp://192.168.0.2/live/bbb
&url=rtmp://127.0.0.1/live/bbb
### delete relay task
DELETE http://127.0.0.1:8000/api/relay/N3MKMPHU HTTP/1.1
Authorization: Basic admin:admin