Questions tagged [simple-peer]

Simple WebRTC video, voice, and data channels for nodejs and browser

Homepage + docs

https://github.com/feross/simple-peer

Syntax

var Peer = require('simple-peer')

var peer1 = new Peer({ initiator: true })
var peer2 = new Peer()

peer1.on('signal', data => {
  // when peer1 has signaling data, give it to peer2 somehow
  peer2.signal(data)
})

peer2.on('signal', data => {
  // when peer2 has signaling data, give it to peer1 somehow
  peer1.signal(data)
})

peer1.on('connect', () => {
  // wait for 'connect' event before using the data channel
  peer1.send('hey peer2, how is it going?')
})

peer2.on('data', data => {
  // got a data channel message
  console.log('got a message from peer1: ' + data)
})
94 questions
0
votes
1 answer

WebRTC: data transfer issue

I'm trying to send ArrayBuffer using WebRTC and simple-peer package. And I got these issues: Another browser receives several events with Uint8Arrays which are part of the original ArrayBuffer. Length of each Uint8Array is not greater than 262528.…
dodd0ro
  • 467
  • 5
  • 12
0
votes
1 answer

simple-peer removeTrack/removeStream is destroying the peer instead of just removing the mediaStream

guys I am having a problem in which I am trying to create a project that is working on peer to peer connection, When I have a connection between two peers and I addStream, I can hear the audio and stuff that is okay, But when I want to remove the…
bzzzzzz
  • 88
  • 1
  • 12
0
votes
1 answer

Video is not playing on other peer-side in WebRTC Simple-Peer Angular 7

I am working on WebRTC and connecting two-peers on different browser pages, one peer which is initiator comes with this url http://localhost:4200/#init and other which is video receiver comes with this url http://localhost:4200/. After building…
WasiF
  • 26,101
  • 16
  • 120
  • 128
-2
votes
1 answer

Adding Recording feature to a web based video conferencing application

Hi guys me and my team already built a video conferencing application with MERN stack but we are left with one tiny little feature which is integrating recording features into it. Pls guys any idea on how we can implement the recording feature.
1 2 3 4 5 6
7