Comments (37)
Seems to me that this is not directly related with WebRTC, but instead on
getUserMedia() and similar, isn't it?
El 26/10/2013 11:30, "Alan K" [email protected] escribió:
http://www.w3.org/TR/mediacapture-streams/
Create media streams for node that can send and receive video and audio.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25
.
from node-webrtc.
The PeerConnection API supports adding and removing streams, as well as offering audio and video capability. I would like these to be supported in the node module as well.
I don't see a reason to implement getUserMedia for node.
from node-webrtc.
Ok, I agree then.
El 26/10/2013 12:09, "Alan K" [email protected] escribió:
The PeerConnection API supports adding and removing streams, as well as
offering audio and video capability. I would like these to be supported in
the node module as well.I don't see a reason to implement getUserMedia for node.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-27143373
.
from node-webrtc.
hi modeswitch:
i just see this
"
In Chrome 31 and above, a MediaStream from one RTCPeerConnection can be used as the input for another: there's a demo at simpl.info/multi. This can enable more flexible architectures, since it enables a web app to handle call routing by choosing which other peer to connect to
"
in these article http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
i think it it is easier to do stream multiplexing.
from node-webrtc.
any timeline for this issue?
from node-webrtc.
Possibly over the next week or so, I think. There are a few use-cases here so I'd like to see this working.
from node-webrtc.
+1
I need to support client stream -> server -> client stream
from node-webrtc.
Need the media stream functionality so I've implemented mediastream.h and mediastream.cc, but I'm running into a few issues. I can't get node-webrtc to build right (without my additions) and I'm new to github so I'm not sure how to properly join the project
from node-webrtc.
@kofd No worries! I've added you as a contributor and assigned this issue to you. I can also try and help you get things compiling; are you on a linux machine?
from node-webrtc.
I'm running on Ubuntu 12.04, using ssh on an aws server. I've got it all set up for the most part, but I'm stuck when running:
$ node-gyp --debug rebuild
The objects binding.o, peerconnection.o, and datachannel.o seem to be created just fine but, but after:
...
CXX(target) Debug/obj.target/webrtc/src/datachannel.o
SOLINK_MODULE(target) Debug/obj.target/webrtc.node
g++ gives a bunch of "No such file or directory" errors:
g++: error: ../lib/libwebrtc/trunk/out/Debug/obj/talk/libjingle_peerconnection.a: No such file or directory
...
g++: error: ../lib/libwebrtc/trunk/out/Debug/obj/webrtc/system_wrappers/source/libsystem_wrappers.a: No such file or directory
make: *** [Debug/obj.target/webrtc.node] Error 1
and I'm really not sure what to do after this point, especially since those files do exist
from node-webrtc.
one thing I suspect to be the problem is that make has entered ~/node-webrtc/build, so ../lib/libwebrtc/ is actually ~/node-webrtc/lib/libwebrtc/, not ~/lib/libwebrtc/
from node-webrtc.
First thing, can you make sure you're pulling from develop
and not libwebrtc
? That will give you the latest code. Also make sure that in binding.gyp
you have 'libwebrtc_out%': '<(libwebrtc)/out/Release/obj',
.
from node-webrtc.
I used the libwebrtc file structure for checking out webrtc (from the old readme file), but my git checkout is from the develop branch... so ~/node-webrtc/lib is currently empty
from node-webrtc.
Can you try running npm install
? You'll need to have depot_tools
installed globally and in your path.
from node-webrtc.
depot_tools is all fine, right now I'm trying to rebuild webrtc in ~/node-webrtc/lib/libwebrtc/trunk instead of ~/lib/libwebrtc. depot_tools is currently installed to ~/tools/depot_tools and it is in my path, gclient sync and runhooks all complete without error, and I'm about to use ninja to build the release and debug versions of peerconnection_client again...
... though it seems that npm install hangs on gclient_runhooks
from node-webrtc.
So you're running ninja -C lib/libwebrtc/trunk/out/Release
and getting errors?
from node-webrtc.
I don't get errors with ninja, it looks like glient_runhooks just finished too (it just looked like it was hanging because the progress mechanism wasn't moving anymore).
from node-webrtc.
OK, let me know if you run into more problems and I'll give help.
from node-webrtc.
thanks, I think i've figured it out. If I get it to build I can do a unit test and commit the files.
from node-webrtc.
I'm not sure what I'm doing wrong with committing. I call:
git push origin develop
and get
ERROR: Permission to modeswitch/node-webrtc.git denied to kofd.
fatal: The remote end hung up unexpectedly
from node-webrtc.
@kofd You don't have push access to my repo. You'll first need to make a fork and push to that. Then make a pull request onto my repo and I'll merge it.
from node-webrtc.
You mention that I should be using the develop branch, but my fork doesn't have one. I can't figure out why...
I've committed the files mediastream.h, mediastream.cc, mediastreamtrack.h, mediastreamtrack.cc to my libwebrtc branch and integrated them into the build, I'll commit the changes to peerconnection when I get a chance
from node-webrtc.
@kofd https://github.com/kofd/node-webrtc/tree/develop
You can go into settings and change that to the default branch. You may want to check out some tutorials for git and github also.
from node-webrtc.
I'm not sure how to implement automated testing for media streams because until we support the server-side creation of streams, the streams can only be initiated by receiving a stream from another source
from node-webrtc.
Can you add whatever test you used to make sure it works? It can be a node script and a webpage, that's fine.
from node-webrtc.
@kofd To add the tests, you can make more pushes to your branch and they'll be added to the pull request automatically.
from node-webrtc.
@kofd I merged your patch, thanks for that! When you have a chance, make another pull request to add your test into examples
.
from node-webrtc.
So I've tried using your test on Debian Stable with the latest code. When running the stream tests, I get the error:
node: symbol lookup error: /home/jessie/node-webrtc/build/Release/webrtc.node: undefined symbol: vp8_idct_dequant_0_2x_sse2
It looks like this should be in the libvpx_asm_offset_vp8.a or one of the other libvpx files. Any idea on what I'm doing wrong? Other than that, it seems like the streaming API works correctly.
And for future questions and issues, do you guys have an IRC channel or something that I can be in?
from node-webrtc.
@JessieAMorris i just set up a channel #wrtc
on irc.mozilla.org
from node-webrtc.
@kofd could you add some instructions for running the example you committed?
from node-webrtc.
So it seems like the issue is with the link order of libvpx.a and libvpx_intrinsics_sse2.a
I have no clue how to go about fixing this right now.
from node-webrtc.
Since there's only a small number of libraries, fiddling with the link order by hand is probably going to be easiest. Try moving libvpx.a
after libvpx_intrinsics_sse2.a
, that may fix it.
I ended up not having much time to look into this today. I should have some free cycles again on Friday.
from node-webrtc.
@JessieAMorris There's a circular dep here:
libvpx.a:../../../gen/third_party/libvpx/idctllm_sse2.o:0000000000000000 T vp8_idct_dequant_0_2x_sse2
libvpx_intrinsics_sse2.a:source/libvpx/vp8/common/x86/libvpx_intrinsics_sse2.idct_blk_sse2.o: U vp8_idct_dequant_0_2x_sse2
libvpx.a:source/libvpx/vp8/encoder/libvpx.onyx_if.o: U vp8_variance_halfpixvar16x16_v_wmt
libvpx_intrinsics_sse2.a:source/libvpx/vp8/common/x86/libvpx_intrinsics_sse2.variance_sse2.o:0000000000000000 T vp8_variance_halfpixvar16x16_v_wmt
Should be fixed now.
from node-webrtc.
@modeswitch Yeah, I'll get the latest version running on my dev env sometime this weekend and write it up
from node-webrtc.
Sorry I haven't been able to write anything up, I've been getting the "gclient_runhooks failed: 2 null" error
from node-webrtc.
Checkout PR #136, updates the code to get remote MediaStream forwarding working.
from node-webrtc.
Native backend won't support media streams.
from node-webrtc.
Related Issues (20)
- Nonstandard APIs (RTCAudioSource) : Multiple tracks created from same source, all tracks do not get audio. only latest track gets audio. HOT 1
- Forcing a fixed samplerate when using `nonstandard.RTCAudioSink`
- change video quality HOT 9
- streaming video and audio with dely
- `npm i -S wrtc` —> `node-pre-gyp` error HOT 4
- Does it support v4l2 source? HOT 1
- Is this still maintained? HOT 1
- Is Programmatic Video not the real media stream?
- Error in Build from Source
- electron >= 20 crashes if receiving a buffer with simple-peer
- ncmake build failed for wrtc (darwin arm64) HOT 1
- is TURNS (Turn over TLS) supported? HOT 1
- 'npm install wrtc' always failed with http error 503, but wget the tarball succeeded.
- High CPU usage on raspberry pi HOT 2
- Is this repo stale / abandoned? HOT 3
- Cannot download binaries - Darwin m2 Pro 14.0 HOT 4
- i am unable to install on nodejs windows 10 HOT 2
- Is there an easy way to use it for node 18|20 HOT 1
- The dependency to `msdmo.dll` for Windows is not documented HOT 1
- No longer able to install modul wrtc on Macos (M3 Pro) HOT 3
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 node-webrtc.