rn-antmedia
rn-antmedia copied to clipboard
Antmedia user not connecting over live stream
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
checking on ant server documentation, i see you need to wait for command "initialized" before joining the room