deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.16k stars 283 forks source link

Cant get direct webrtc stream access/stream list #436

Closed jptheripper closed 4 months ago

jptheripper commented 4 months ago

Streams are working fine I cant access the stream directly, or get a stream list curl http://127.0.0.1:8083/streams returns null

http:///127.0.0.1:8083/stream/demo2/channel/0/webrtc returns 404

"streams": { "demo1": { "name": "demo1", "channels": { "0": { "name": "ch1", "url": "rtsp://10.203.21.200/multicast/Stream0", "on_demand": false, "debug": false, "audio": false, "status": 1 } } }, "demo2": { "name": "demo2", "channels": { "0": { "name": "ch1", "url": "rtsp://10.203.23.222/multicast/Stream0", "on_demand": false, "debug": false, "audio": false, "status": 1 } } }

jptheripper commented 4 months ago

update, removing demo/demo from config (or adding to streams url) allows response from /streams Still getting 404 trying to access individual streams directly.

curl http://127.0.0.1:8083/stream/demo1/channel/0/webrtc 404 page not found

curl http://127.0.0.1:8083/streams { "status": 1, "payload": { "demo1": { "channels": { "0": { "name": "ch1", "status": 1, "url": "rtsp://10.203.21.200/multicast/Stream0" } }, "name": "demo1" }, "demo2": { "channels": { "0": { "name": "ch1", "status": 1, "url": "rtsp://10.203.23.222/multicast/Stream0" } }

jptheripper commented 4 months ago

curl http://demo:demo@127.0.0.1:8083/stream/demo1/info { "status": 1, "payload": { "name": "demo1", "channels": { "0": { "name": "ch1", "url": "rtsp://10.203.21.200/multicast/Stream0", "status": 1 } } } }

jptheripper commented 4 months ago

Disregard. Used example to play video. Thank you!