muaz-khan / WebRTC-Scalable-Broadcast

This module simply initializes socket.io and configures it in a way that single broadcast can be relayed over unlimited users without any bandwidth/CPU usage issues. Everything happens peer-to-peer!
https://rtcmulticonnection.herokuapp.com/demos/Scalable-Broadcast.html
532 stars 142 forks source link

Multiple Broadcast Froze #23

Open rayj00 opened 8 years ago

rayj00 commented 8 years ago

I just started to look at WebRTC-Scalable-Broadcast. Initially I was skeptical of the concept but after thinking about it I figured I'd give it a try.

So I had the originator and 4 viewers up on my local LAN. Everything looked good. Lag was minimal. However, after 10 minutes or so, all video froze. I have no idea why? I was browsing the internet for other reason and left the broadcast up. Where is the log file for this feature?

Oh, one more thing, once this happened, the camera light is still on. After doing another node server.js, nothing happens with the camera when I browse to IP:8888?

PS: I am very impressed with your work Muaz. Thanks, Ray

muaz-khan commented 8 years ago

I just tested 15 minutes broadcast here:

I created 6 receiver tabs on both MacOSX and WIn7. Both were using same internet modem (DSL/broadband).

It worked smoothly without any lag or freeze.

rayj00 commented 8 years ago

Where are the log files?

rayj00 commented 8 years ago

I have been playing with Kurento lately, especially their 1 to Many. But it can only handle so many before the video degrades. That's why I am looking at yours. I am using VirtualBox. I have Ubuntu Server 14.04.4. It is funny but I am seeing the same problem with yours that I see with Kurento. The app gets screwed up and will not grab the camera anymore. I reboot the server but that does not fix the problem. I have to totally shut down the VBox guest then reboot my host. Then restart everything and it is fine.

So now I have restarted everything and I have 8 receiver tabs opened with very little lag. This is using Firefox. I will time it and see if and when it freezes.

I also tried adding more using Chrome but I get the attached error. chrome scalable bcast

Also, where are the log files?

Thanks,

Ray

muaz-khan commented 8 years ago

RTCMultiConnection doesn't (currently) creates any log file on nodejs end. However this option will be added soon in v3.

RTCMultiConnection client-code (javascript-browser-code) always logs in the chrome console.

You can NOT capture single camera from both Chrome and Firefox at the same time.

Please open this (chrome://settings/contentExceptions#media-stream-camera) and make sure that your domain is allowed for camera access.

rayj00 commented 8 years ago

I restart my computer. Chrome will not grab the camera. I get the same output in my previous post. I reset the Chrome to defaults. Still not grabbing camera. How to debug this?

muaz-khan commented 8 years ago

Maybe you should force default devices:

// pass second parameter to force options
var connection = new RTCMultiConnection(null, {
    useDefaultDevices: true
});
netstairs commented 8 years ago

Hi Muaz

You need to change the utility’s Label. Change your button label to Start Recording.

[cid:image001.png@01D1AF44.EF0C1B40]

The term “Sharing” Is NOT applicable. Also what you you wish to pause and resume recording?

[cid:image002.png@01D1AF44.EF0C1B40] Cheers

AM

From: Muaz Khan [mailto:notifications@github.com] Sent: Monday, May 16, 2016 12:01 AM To: muaz-khan/WebRTC-Scalable-Broadcast WebRTC-Scalable-Broadcast@noreply.github.com Subject: Re: [muaz-khan/WebRTC-Scalable-Broadcast] Multiple Broadcast Froze (#23)

Maybe you should force default deviceshttps://github.com/muaz-khan/RTCMultiConnection#default-devices:

// pass second parameter to force options

var connection = new RTCMultiConnection(null, {

useDefaultDevices: true

});

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHubhttps://github.com/muaz-khan/WebRTC-Scalable-Broadcast/issues/23#issuecomment-219344069