RTCMultiConnection
RTCMultiConnection copied to clipboard
After broadcasting a video file, the connection is closed and I cannot fast forward my video while broadcasting...
I cannot figure out why after playing a video (during broadcast) the connection between the parties is closed...? Also, I am not able to fast forward the video used for broadcasting...?
Any hints? Thank you.
Hi ,Your explanation is not detailed enough. One of the forwarding issue I encountered (reconnecting the buffer interface with a black screen all the time) was that the test environment was Windows 10 Chrome and localhost: Broadcaster and 4 viewers. Broadcaster --> Viewer1 --> Viewer2 --> Viewer3 --> Viewer4. If Viewer1 drops out, Viewer2/Viewer3/Viewer3 all gets black video with rotating icon. Who can find a solution?
I tried replacing PC Chrome with 'replaceTrack' as well and it worked. E.g.
connection.getSocket(function(socket) {
socket.emit('can-relay-broadcast');
connection.getAllParticipants().forEach(function(p) {
if (p + '' != event.userid + '') {
connection.replaceTrack(event.stream, p);
}
});
});