AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://OvenMediaEngine.com/ome
GNU Affero General Public License v3.0
2.53k stars 1.06k forks source link

WebRTC Streaming stop working when disconnect websocket connection #506

Closed XuanTung95 closed 3 years ago

XuanTung95 commented 3 years ago

Hi Oven team, Thanks for the awesome project and your hard work.

I'm testing with rtmp (in) and webrtc (out) with tcp transport and it works fine. But when I try to disconnect the websocket connection to oven signaling build-in server, the stream stop.

I have a question, do we need to keep the socket alive while streaming? It had done the job sending sdp and candidates, I think we don't need it anymore. If not, I would like the stream to keep playing with or without the socket connection.

getroot commented 3 years ago

The signaling session must stay connected while WebRTC is playing. Because OvenMediaEngine plans to exchange various information through signaling channel. Even now, if the p2p function is used in OME, peer information is exchanged through a signaling channel.

XuanTung95 commented 3 years ago

I understand, looking forward to the exchange infomation feature.

XuanTung95 commented 3 years ago

Another question, can I use OvenMediaEngine as a normal relay server to connect 2 peers? E.g. peer <--> relay server <--> peer

getroot commented 3 years ago

Please refer to the following URL.

WebRTC broadcast: https://airensoft.gitbook.io/ovenmediaengine/v/master/live-source/webrtc-beta

WebRTC playback: https://airensoft.gitbook.io/ovenmediaengine/v/master/streaming/webrtc-publishing

Web conference example site created using this: https://github.com/AirenSoft/OvenSpace https://space.ovenplayer.com/