Comments (3)
@shesmovedon that looks like an SDP to me, but I don't see any errors. If you're using the code from the usage example in the readme it should be this line that produces that:
console.log('SIGNAL', JSON.stringify(data))
But I don't see SIGNAL
in yours, so maybe you have a different version of the code
from simple-peer.
@maxogden I'm using the code that appears on the example on the readme here, but the .js was "browserified" (that shouldn't matter right?). I still don't know why I'm not getting the offer to copy to my receiver. I replicated the example at this domain http://bkfwieohg.byethost11.com/index.html#1, you can test to see what I'm getting.
from simple-peer.
Your example works fine for me. You're probably mixing up the order of events. Try this:
- Visit http://bkfwieohg.byethost11.com/index.html#1 (this is the initiator)
- Copy the "offer text".
- Visit http://bkfwieohg.byethost11.com/index.html (this is not the initiator, note the lack of
#1
in the url) - Paste the offer text in the box, and click submit. Some "answer text" should appear.
- Copy the "answer text".
- Go back to the first page (the initiator), paste the answer text, and click submit.
- Check your console, you should see "CONNECT" and that some data got sent.
from simple-peer.
Related Issues (20)
- Audio only connection doesn't work HOT 1
- Process not defined when triggering peer.on("connect") and peer.on("data") in reactjs HOT 7
- Ice connection failure error randomly after successful connection and data exchange.
- Segfault when creating and destroying peer with wrtc on node HOT 1
- Mute own microphone HOT 1
- Failed to execute 'send' on 'RTCDataChannel': RTCDataChannel send queue is full HOT 1
- When Simple-peer ICECOMPLETE_TIMEOUT is set to 1000 milliseconds Webtorrent performs MUCH faster
- how i can switch between audio input devices ?
- Failed to execute 'setRemoteDescription' on 'RTCPeerConnection' HOT 3
- stream channel not working when data channel is used along with stream channel HOT 3
- Upgrade dependency readable-stream to v4 HOT 1
- The sample code does not work properly
- Is it possible to provide a token in simple-peer opts HOT 3
- No connection when hosted, but locally ok HOT 1
- Fixing addStream() deprecation HOT 3
- RTCPeerconnection failed on mobile device and on Mac HOT 3
- MException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable ( HOT 1
- npm install simple-server fails
- Discussions HOT 1
- So many seemingly dangling peer connections, even if no peer is open HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-peer.