rn-antmedia icon indicating copy to clipboard operation
rn-antmedia copied to clipboard

Antmedia user not connecting over live stream

Open varunsdcet opened this issue 3 years ago • 1 comments

We want to do like education App. First Teacher start Live Broadcasting each user start watching on it. If user has doubt on it. student press a button they will join over call.Each user Licensing conversation of it .When teacher disconnect call call user disconnect . and now he became listneing. For play live stream we use this const play = useCallback( (room, streamId) => { const data = { command: 'play', room, streamId, }; setRoomName(room);

  if (socket.ws) socket.ws.sendJson(data);
},
[socket.ws],

);

for joining room we ue this const joinRoomw = useCallback( (room, streamId) => { const data = { command: 'joinRoom', room, streamId, }; setRoomName(room);

  if (socket.ws) socket.ws.sendJson(data);
},
[socket.ws],

);

But there iss sproblem sometime is coneected sometime not connected

varunsdcet avatar Jun 22 '21 07:06 varunsdcet

checking on ant server documentation, i see you need to wait for command "initialized" before joining the room

RicardoBrito1938 avatar Jan 19 '22 10:01 RicardoBrito1938