Giter VIP home page Giter VIP logo

getting_started_with_webrtc's People

Contributors

buildar avatar mattstabeler avatar robman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

getting_started_with_webrtc's Issues

No Video

Hey, great example! I can't seem to get the video to show up though. I might be missing something... I just get a crossed out camera icon. Chat works, as well as file transfer.

Using google Chrome, running node locally, opening two browser tabs (or across two browser instances).

can't set up a vedio call

I read the book and downloaded the sourece code both from the packpub.com and github,installed websocket use npm,but there is always connecting but can't make the call
qq20140527005047
qq20140527005130

Can not acces from other device

Hey

I can not acces the room from an other device, only from localhost.
How can i acces the room from 2 different devices?

Stuck at "One moment please...connecting your call..."

I am reading through the book "Getting Started with WebRTC".

I installed node.js and websockets. I am running "node webrtc_signal_server.js".

If I open two tabs in chrome and hit "http://192.168.200.209:1234/#1390508125279-5240" it works just fine. But I I do the same test from two machines both browsers say "One moment please...connecting your call...".

This is what I see in the Chrome browsers javascript console:

setting up local video stream (index):368
setting up connection to signaling server (index):148
you are the Callee (index):180
updating UI to loading_state (index):209
sending 'join' signal for call token:#1390508677469-5908 (index):190
sending 'callee_arrived' signal for call token:#1390508677469-5908 (index):199
new local stream added (index):376
local stream added to peer_connection to send to remote peer 

Any idea what might be going wrong?

Joining a WebRTC session on Pi's browser: `navigator.mozGetUserMedia()` does not detect the Raspberry Pi Camera

Note that this issue may not be caused by this tutorial explicitely, but instead it may be a general issue when accessing the Pi's webcam via a WebRTC session on the Pi's browser. It is confusing, however, becuase my IceWeasel install supports WebRTC, which I confirmed here: http://iswebrtcready.appear.in/ I also have a Stack Exchange post here.

I am trying to use my Raspberry Pi 2 and Raspberry Pi Camera to join a WebRTC session in the browser. I was able to set up a WebRTC server on my Pi through this tutorial and I am able to start/join a WebRTC session on any PC with video/audio enabled.

Also, I installed UV4L, which enables the browser to recognize the Pi camera.

When I try to access a WebRTC session on the Pi, however, the browser is unable to start the video. More specifically, the Javascript Navigator object fails on the navigator.mozGetUserMedia() to start the video, returning the error "Starting video failed". The mozGetUserMedia is bound in this line of code and the method is called here.

I am using the IceWeasel browser because the Chromium and Epiphany browsers do not seem to support WebRTC on the Pi. Can anyone provide guidance on getting my Pi Camera detected by WebRTC? Or is there another browser that will properly run my Raspberry Pi Camera?

My browser's console output is here:

"early firefox webrtc implementation" 192.168.0.103:1234:55
"getting user media..." 192.168.0.103:1234:59
"got user media..." 192.168.0.103:1234:61
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. 192.168.0.103:1234
"setting up local video stream" 192.168.0.103:1234:374
"setting up connection to signaling server" 192.168.0.103:1234:153
"you are the Caller" 192.168.0.103:1234:158
"updating UI to loading_state" 192.168.0.103:1234:182
"sending 'join' signal for call token:#1442483208369-4377" 192.168.0.103:1234:172
"Starting video failed" 192.168.0.103:1234:555

Similarly, when I try to join a Firefox Hello chat in my Pi's browser, I get these debug console messages:

The Components object is deprecated. It will soon be removed. utils.js:9
"No information about this conversation is available. Please request a new link from the person who sent it to you." standaloneRoomViews.js:366

Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. 2768540301.js:92
"OT.Publisher.onStreamAvailableError Starting video failed: Unknown Error while getting user media" sdk.js:3399

"OT.exception :: title: Unable to Publish (1500) msg: GetUserMedia" sdk.js:3399

1500 "Unknown Error while getting user media" sdk.js:3399

"OT.exception :: title: Unable to Publish (1500) msg: Unknown Error while getting user media" sdk.js:3399

Error: HTTP 401 Unauthorized
Stack trace:
failureHandler@https://hello.firefox.com/js/standaloneMozLoop.js:44:9
loop.StandaloneMozLoop</StandaloneMozLoopRooms.prototype._postToRoom/xhrReq.onload<@https://hello.firefox.com/js/standaloneMozLoop.js:142:11

Here are some details on my setup:

[pi@raspberrypi]~$ uname -a
Linux raspberrypi 4.1.6-v7+ #2 SMP PREEMPT Fri Sep 4 16:49:07 UTC 2015 armv7l GNU/Linux

[pi@raspberrypi]~$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

[pi@raspberrypi]~$ iceweasel --version
Mozilla Iceweasel 31.8.0

And my camera is working fine, where I can run raspivid -t 10000 which displays the camera's video for 10 seconds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.