RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

After broadcasting a video file, the connection is closed and I cannot fast forward my video while broadcasting...

Open njss opened this issue 5 years ago • 2 comments

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.

njss avatar Oct 16 '20 14:10 njss

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?

xujingzhou avatar Feb 07 '21 07:02 xujingzhou

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);
				}
			});
        });

xujingzhou avatar Feb 08 '21 00:02 xujingzhou