WebRTC with LAN

need help here.

I am creating an html5 / php website that allows users to stream video using a webcam to multiple users, we currently use webRTC, but it lags if there are many users watching the video.

I am trying to use my local computer as a server with mainly an intranet user. can i use webRTC to implement it? if so, how to do it?

any tutorial i can read?

 var iceServers = [];

        iceServers.push({
            url: 'stun:stun.l.google.com:19302'
        });

        iceServers.push({
            url: 'stun:stun.anyfirewall.com:3478'
        });

        iceServers.push({
            url: 'turn:turn.bistri.com:80',
            credential: 'homeo',
            username: 'homeo'
        });

        iceServers.push({
            url: 'turn:turn.anyfirewall.com:443?transport=tcp',
            credential: 'webrtc',
            username: 'webrtc'
        });

        connection.iceServers = iceServers;
+4
source share
1 answer

I would consider using WebSockets with node.js in this case, as they will give a much better connection.

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications

https://github.com/websockets/ws

+1

Source: https://habr.com/ru/post/1612870/


All Articles