GithubHelp home page GithubHelp logo

Comments (17)

stefanalund avatar stefanalund commented on August 11, 2024

Actually it may be quite simple to get OpenWebRTC running in a Node server. We have a daemon running on Linux (and OS X as well) that can communicate over localhost to the Node server similarly to how our browser extension do, see:

https://github.com/EricssonResearch/openwebrtc-browser-extensions
http://www.openwebrtc.io/blog/2014/10/31/webrtc-in-safari-using-openwebrtc

I'm not sure exactly how to do this in Node, but all you would need to do after starting the daemon is to inject this script http://localhost:10717/owr.js in to Node's JavaScript runtime. That should add WebRTC capabilities to it.

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

There is also https://github.com/cfsghost/node-gcontext if it's interesting.

from openwebrtc-examples.

RangerMauve avatar RangerMauve commented on August 11, 2024

Yeah, I was thinking that it'd be more like Node.js being just another environment that has bindings to OpenWebRTC. @superdump's link seems like the direction I was thinking.

Sadly my C/C++ skills are kinda rusty these days so I'll probably either wait for someone else to do it, or brush up when I have time.

Also, out of curiosity, where is the source code for that owr.js file?

from openwebrtc-examples.

stefanalund avatar stefanalund commented on August 11, 2024

It is in the OpenWebRTC repo: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/client/webrtc.js

from openwebrtc-examples.

RangerMauve avatar RangerMauve commented on August 11, 2024

Thanks!

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

@RangerMauve more specifically it's a concatenation of a few files. See here: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/worker/bridgeserver.js#L225 wbjsonrpc.js is in bridge/shared/ and the others are in bridge/client/.

from openwebrtc-examples.

vsantosu avatar vsantosu commented on August 11, 2024

Any news about this? I'm working on a Node.js distributed system for my research, and I have seen a lot of webrtc library but not any suitable support for Node.js. I found some modules that basically download the chromium project and binds the module to the webrtc layer using node-gyp, it is a huge overhead and not really practical if we need to distributed our system. Its possible to create a simple webrtc client module for node.js using OpenWebrtc? It will be fine if we can have prebuild binaries of the library for OS X, Linux and Windows, and not a 400MB Chromium browser just for using datachannel etc.

Thanks so much for your attention, any help is really appreciated.

from openwebrtc-examples.

RangerMauve avatar RangerMauve commented on August 11, 2024

For Node it seems that if you just want data channels, then the wrtc module is the standard right now. Doesn't seem to be supporting Windows any time soon, though.

from openwebrtc-examples.

vsantosu avatar vsantosu commented on August 11, 2024

@RangerMauve , thats one of the modules that downloads the Chromium source and compiles everything, it ends in a huge 400MB binary just to use the DataChannel, I don't think that is practical. I think that we would end downloading the web core standard library and creating a full binding for ourselves, that would be the ideal case :(

from openwebrtc-examples.

RangerMauve avatar RangerMauve commented on August 11, 2024

Oh, really? I didn't know that it was embedding all of chromium in it! That's pretty suboptimal, then.

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

No news from us. We don't have any plans ourselves to implement the Node.js GObject Introspection support. We would welcome it though.

from openwebrtc-examples.

SrujithPoondla avatar SrujithPoondla commented on August 11, 2024

How to run Openwebrtc Deamon in Linux?

from openwebrtc-examples.

stefanalund avatar stefanalund commented on August 11, 2024

@SrujithPoondla https://github.com/EricssonResearch/openwebrtc/wiki/Running-and-Testing#step-2---running-the-daemon

from openwebrtc-examples.

SrujithPoondla avatar SrujithPoondla commented on August 11, 2024

I am getting like this

srujith@PC:~/cerbero/sources/linux_x86_64/openwebrtc-0.3.0/bridge$ ./openwebrtc-daemon

** (gst-plugin-scanner:29399): CRITICAL **: Couldn't g_module_open libpython. Reason: /usr/lib/libpython2.7.so: cannot open shared object file: No such file or directory
{"line":24,"column":32,"sourceURL":"/opt/openwebrtc-0.3/share/seed-gtk3/extensions/Seed.js"}

from openwebrtc-examples.

SrujithPoondla avatar SrujithPoondla commented on August 11, 2024

issue resolved thanks @stefanalund

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

@SrujithPoondla : please don't ask questions on issues that are unrelated to your problem. Create a new issue instead.

from openwebrtc-examples.

SrujithPoondla avatar SrujithPoondla commented on August 11, 2024

sure @superdump

from openwebrtc-examples.

Related Issues (20)

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.