I learn that Zoom allows user to stream to custom platform, wonder if i could configure it stream to my webrtc server, if so, how?
Attachments
-
78 KB Views: 228
You should establish websocket session before publishing a stream because websocket is used for SDP excahnge to establish a WebRTC connectionDon't I need to create a session with a designated stream ID in Webrtc server before I could stream to it?
A browser uses local HTML5I believe I would hv to modify the following code to start the stream, but wonder how do i update it to just start a stream, but not taking local VIDEO as source:
video
tag to capture video from web camera. So you can't do without local video as source in case of WebRTC streaming.You don't need to create RTMP session before publishing RTMP to WCS. Just use such URLi) Create a rtmp session in webrtc server with a stream name
ii) stream from Zoom to above RTMP session using the same stream name
rtmp://wcs:1935/live/test
test
will be published to WCS. Please read details here.1. Find stream by nameIs there a way to kill by stream name?
POST /rest-api/stream/find HTTP/1.1
Host: localhost:8081
Content-Type: application/json
{
"name":"stream1",
"published":true
}
sessionId
from responseHTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Date: Tue, 26 Mar 2021 11:05:16 GMT
[
{
"appKey": "defaultApp",
"sessionId": "/115.111.306.217:51450/188.40.244.249:1935",
"mediaSessionId": "86108970-8de5-11eb-afa9-0d709beccf93",
"name": "test",
"published": true,
...
}
]
sessionId
POST /rest-api/connection/terminate HTTP/1.1
Host: localhost:8081
Content-Type: application/json
{
"sessionId":"/115.111.306.217:51450/188.40.244.249:1935"
}