RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

Scaleable Broadcast Issue

Open rayj00 opened this issue 5 years ago • 3 comments

Disregard. Mistake. Number of viewers seems to be working ok. I am playing with the Scaleable Broadcast and noticed that if I originate a broadcast from my Android phone, it will also display the "Number of Broadcast Viewers: " but if I originate from my PC, it does not display the number of viewers? Any idea why?

I was going to post this in the Scaleable Broadcast github, but it is archived and read only?

Thanks,

Ray

rayj00 avatar May 23 '20 15:05 rayj00

Another issue with Scaleable Broadcasting. After broadcaster starts, next viewer is ok, 2nd viewer joins ok, but then has wrong roomid stored. He has userid stored instead of roomid, so 3rd viewer cannot join? I am using Chrome and new tab for each viewer. So roomid should be the same.

Anyone else see this?

rayj00 avatar Jun 06 '20 20:06 rayj00

Another issue with Scaleable Broadcasting. After broadcaster starts, next viewer is ok, 2nd viewer joins ok, but then has wrong roomid stored. He has userid stored instead of roomid, so 3rd viewer cannot join? I am using Chrome and new tab for each viewer. So roomid should be the same.

Anyone else see this?

To test, use Chrome browser: Start with new default broadcast. Random roomid assigned.
Open another tab and browse to page. Same roomid used. Join broadcast.
Open another tab and browse to page. Same roomid is used. Join broadcast.
Open another tab. Different roomid is used. Cannot join broadcast, but can start new broadcast. This viewer should have received same roomid as other viewers!!

How to fix???

rayj00 avatar Jun 07 '20 13:06 rayj00

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