peerjs

how to create and run my own peerjs server?

江枫思渺然 提交于 2019-11-29 03:37:32
问题 I got the following code from the git-hub but I don't know how to use and execute. $> npm install peer --->where i want to install this node_module ? //Run the server: $> peerjs --port 9000 --key peerjs or var PeerServer = require('peer').PeerServer; var server = new PeerServer({port: 9000, path: '/myapp'}); what's the difference between above steps. when and where to use those steps. 回答1: After npm install peer go to /root/node_modules/peer/node_modules/ws . Then add something like var

Is there an API for the chrome://webrtc-internals/ variables in javascript?

为君一笑 提交于 2019-11-28 20:48:51
I want to get access to some of the logged variables in the chrome://webrtc-internals/ , but I didn't find anything on google - not even a description of the graphs I can see. I am particularly interested in packetsLost , googCurrentDelayMs and googNacksSent . why I want to access the webrtc-internals I am writing a google chrome application that shares a video stream (p2p). It uses peerjs to share the stream with other peers, which in turn uses googles webrtc implementation underneath. To make my application perfect I would need to know when a big delay occurs. Since I can see the delay

Is there an API for the chrome://webrtc-internals/ variables in javascript?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 13:12:44
问题 I want to get access to some of the logged variables in the chrome://webrtc-internals/ , but I didn't find anything on google - not even a description of the graphs I can see. I am particularly interested in packetsLost , googCurrentDelayMs and googNacksSent . why I want to access the webrtc-internals I am writing a google chrome application that shares a video stream (p2p). It uses peerjs to share the stream with other peers, which in turn uses googles webrtc implementation underneath. To