peerjs

Uncaught (in promise) DOMException: Could not start video source , Uncaught Error: The error you provided does not contain a stack trace

扶醉桌前 提交于 2021-02-11 07:51:54
问题 Hey guys am trying to run a webrtc video call using react, node, socket and peerjs, if i try starting a video chat with chrome it works, if i run chrome as private and connect as second user using the video link it works but if i try connecting from another browser using same video link e.g edge or opera it doesn't work instead it console log an error.. My code import React from 'react' import io from 'socket.io-client' import Peer from 'peerjs' import './ClassWall.css' const socket = io

Having multiple peers PeerJS?

半世苍凉 提交于 2021-01-21 10:50:07
问题 Here is my code for connections with PeerJS: var peer = new Peer({ key: '[PeerJSID]', debug: 3}); peer.on('open', function(){ $('#my-id').text(peer.id); }); // Receiving a call peer.on('call', function(call){ // Answer the call automatically (instead of prompting user) for demo purposes call.answer(window.localStream); step3(call); }); peer.on('error', function(err){ alert(err.message); // Return to step 2 if error occurs step2(); }); // Click handlers setup $(function(){ $('#make-call')

Peer to peer client with peerjs and python user

老子叫甜甜 提交于 2020-12-15 05:44:14
问题 Download and unrar this file in htdocs folder (for example C:/xampp/htdocs/telephone_calls) Run this ngrok command: ngrok http 192.168.1.24:80 (replace 192.168.1.24 with your lan ip address) Replace lines 118 and 119 of file manage_calls.py with your own. cd to telephone_calls directory and run python manage_calls.py With another device open a browser and go to https://25f4a7e689ce.ngrok.io/telephone_calls/client.html (replace 25f4a7e689ce with your own) Press the blue button "Τηλεφωνική

Only one frame displayed WebRTC stream

南楼画角 提交于 2020-03-22 08:11:33
问题 I'm using PeerJS and their cloud-hosted servers to build a WebRTC application. Here's my code: navigator.getMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); window.URL = window.URL || window.webkitURL; var callSettings = { video: { mandatory: { maxWidth: 400, maxHeight: 300 } }, audio: true }; $(document).ready(function () { var videoel = $("#teacher-stream")[0]; $(document).on('click', ".start-call", function () //A

How can I receive data with a peerJS peer to peer connection?

不羁的心 提交于 2020-02-02 07:15:46
问题 I'm trying to connect two peers using peerJS. I am pretty much just following through their "Getting Started" but I am still struggling. Below is the code that I have gotten so far. <body> <script src="http://cdn.peerjs.com/0.3/peer.min.js"></script> <script> var conn; var peer = new Peer({key: 'lwjd5qra8257b9'}); peer.on('open', function(id){ console.log('My peer ID is:' + id); document.getElementById('peerIdDisplay').innerHTML = '<b>My peer ID is: </b><font color="red">' + id + '</font>'; }

How can I receive data with a peerJS peer to peer connection?

夙愿已清 提交于 2020-02-02 07:14:47
问题 I'm trying to connect two peers using peerJS. I am pretty much just following through their "Getting Started" but I am still struggling. Below is the code that I have gotten so far. <body> <script src="http://cdn.peerjs.com/0.3/peer.min.js"></script> <script> var conn; var peer = new Peer({key: 'lwjd5qra8257b9'}); peer.on('open', function(id){ console.log('My peer ID is:' + id); document.getElementById('peerIdDisplay').innerHTML = '<b>My peer ID is: </b><font color="red">' + id + '</font>'; }

webrtc and peerjs: how to choose H264 instead of vp8?

烈酒焚心 提交于 2019-12-13 19:05:39
问题 I do use peerjs https://peerjs.com to stablish connection between 2 peers. Is there a way to force the use of H264 code instead of VP8 ? Regards 回答1: You will have to edit the peerjs code to change codecs. Basically you will have to update the SDP , more specifically, the video line in the sdp. The video line will look something like m=video 60372 UDP/TLS/RTP/SAVPF 96 98 100 101 116 111 The numbers 100 101 etc correspond to the various codecs that the peer support, they are represented by