Data connection works but video not streaming?
See original GitHub issueThis is the peer with the camera (some info might be missing because I used just JSON.stringify) except I added the steam info as I can see in console.log()
this peer was instantiated with var peer = new SimplePeer({stream: video.stream});
_id ":"
0 cb1b63 ","
_readableState ":{"
objectMode ":false,"
highWaterMark ":1048576,"
buffer ":{"
head ":null,"
tail ":null,"
length ":0},"
length ":0,"
pipes ":null,"
pipesCount ":0,"
flowing ":true,"
ended ":false,"
endEmitted ":false,"
reading ":true,"
sync ":false,"
needReadable ":true,"
emittedReadable ":false,"
readableListening ":false,"
resumeScheduled ":false,"
defaultEncoding ":"
utf8 ","
ranOut ":false,"
awaitDrain ":0,"
readingMore ":false,"
decoder ":null,"
encoding ":null},"
readable ":true,"
_events ":{},"
_writableState ":{"
objectMode ":false,"
highWaterMark ":1048576,"
needDrain ":false,"
ending ":false,"
ended ":false,"
finished ":false,"
decodeStrings ":true,"
defaultEncoding ":"
utf8 ","
length ":0,"
writing ":false,"
corked ":0,"
sync ":true,"
bufferProcessing ":false,"
writecb ":null,"
writelen ":0,"
bufferedRequest ":null,"
lastBufferedRequest ":null,"
pendingcb ":0,"
prefinished ":false,"
errorEmitted ":false,"
bufferedRequestCount ":0,"
corkedRequestsFree ":{"
next ":null,"
entry ":null}},"
writable ":true,"
allowHalfOpen ":false,"
channelName ":"
9 dd132f7c260e715b3d96ff77fb911034d1df192 ","
initiator ":false,"
channelConfig ":{},"
config ":{"
iceServers ":[{"
urls ":"
stun: stun.l.google.com: 19302 "}]},"
constraints ":{},"
offerConstraints ":{},"
answerConstraints ":{},"
reconnectTimer ":false,"
stream ":{
MediaStream
active:true,
id:"9UwXcxzzHsiTzscKjJLXr1rmHktKLjT4GTMt"
onactive:null
onaddtrack:null
oninactive:null
onremovetrack:null
},"
trickle ":true,"
destroyed ":false,"
connected ":true,"
remoteAddress ":"
fdd4: a148: 744 c: 4700: 5973: 54 a9: f2ab: f640 ","
remoteFamily ":"
IPv4 ","
remotePort ":53731,"
localAddress ":"
2001::9 d38: 90 d7: cf2: 18 f2: 54 fb: 657 ","
localPort ":58258,"
_wrtc ":{},"
_maxBufferedAmount ":1048576,"
_pcReady ":true,"
_channelReady ":true,"
_iceComplete ":true,"
_channel ":{},"
_pendingCandidates ":[],"
_chunk ":null,"
_cb ":null,"
_interval ":10,"
_reconnectTimeout ":null,"
_pc ":{},"
_isWrtc ":false,"
_isReactNativeWebrtc ":false,"
_connecting ":false}"
This is the other peer…
instantiated with peer = new SimplePeer({initiator:true});
_id ":"
381 d378 ","
_readableState ":{"
objectMode ":false,"
highWaterMark ":1048576,"
buffer ":{"
head ":null,"
tail ":null,"
length ":0},"
length ":0,"
pipes ":null,"
pipesCount ":0,"
flowing ":true,"
ended ":false,"
endEmitted ":false,"
reading ":true,"
sync ":false,"
needReadable ":true,"
emittedReadable ":false,"
readableListening ":false,"
resumeScheduled ":false,"
defaultEncoding ":"
utf8 ","
ranOut ":false,"
awaitDrain ":0,"
readingMore ":false,"
decoder ":null,"
encoding ":null},"
readable ":true,"
_events ":{},"
_writableState ":{"
objectMode ":false,"
highWaterMark ":1048576,"
needDrain ":false,"
ending ":false,"
ended ":false,"
finished ":false,"
decodeStrings ":true,"
defaultEncoding ":"
utf8 ","
length ":0,"
writing ":false,"
corked ":0,"
sync ":true,"
bufferProcessing ":false,"
writecb ":null,"
writelen ":0,"
bufferedRequest ":null,"
lastBufferedRequest ":null,"
pendingcb ":0,"
prefinished ":false,"
errorEmitted ":false,"
bufferedRequestCount ":0,"
corkedRequestsFree ":{"
next ":null,"
entry ":null}},"
writable ":true,"
allowHalfOpen ":false,"
channelName ":"
9 dd132f7c260e715b3d96ff77fb911034d1df192 ","
initiator ":true,"
channelConfig ":{},"
config ":{"
iceServers ":[{"
urls ":"
stun: stun.l.google.com: 19302 "}]},"
constraints ":{},"
offerConstraints ":{},"
answerConstraints ":{},"
reconnectTimer ":false,"
stream ":false,"
trickle ":true,"
destroyed ":false,"
connected ":true,"
_wrtc ":{},"
_maxBufferedAmount ":1048576,"
_pcReady ":true,"
_channelReady ":true,"
_iceComplete ":true,"
_channel ":{},"
_pendingCandidates ":[],"
_chunk ":null,"
_cb ":null,"
_interval ":4,"
_reconnectTimeout ":null,"
_pc ":{},"
_isWrtc ":false,"
_isReactNativeWebrtc ":false,"
_connecting ":false}"
It seems like on 'stream'
on the receiving peer never got called. They live in two separate windows.
.send('some message')
works and the peers can talk to each other.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
10 Simple Ways To Fix All Video Streaming Issues
The 10 methods to fix video streaming problems include: · Check the internet connectivity · Switch to a different streaming platform · Reduce...
Read more >6 steps to solving your streaming video problems | TechHive
6 steps to solving your streaming video problems · Step 1: Restart everything · Step 2: Know your internet speed · Step 3:...
Read more >Why does the Internet work but it won't load videos? - Quora
The Internet doesn't load videos, but your browser does. Maybe your Internet connection is too slow or low-quality, or maybe the videos you're...
Read more >Troubleshoot video errors, buffering, and freezing - Android
By troubleshooting your internet or device connection, your video may play without playback issues. Start by checking your internet speed, then check the...
Read more >6 Solutions to Internet Explorer Not Playing Videos
Videos can fail to play on your Internet Explorer because of issues with your internet connection. Consequently, it makes sense to use a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing as a duplicate of https://github.com/feross/simple-peer/issues/95.
@teeramusic There is a workaround in that issue. Hope that helps!
Is the initiator not providing a video stream while the other peer is? @teeramusic
If so, see #95