GithubHelp home page GithubHelp logo

Comments (37)

piranna avatar piranna commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

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.

piranna avatar piranna commented on May 12, 2024

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.

notedit avatar notedit commented on May 12, 2024

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.

notedit avatar notedit commented on May 12, 2024

any timeline for this issue?

from node-webrtc.

modeswitch avatar modeswitch commented on May 12, 2024

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.

matbee-eth avatar matbee-eth commented on May 12, 2024

+1
I need to support client stream -> server -> client stream

from node-webrtc.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

kofd avatar kofd commented on May 12, 2024

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.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

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.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

Can you try running npm install? You'll need to have depot_tools installed globally and in your path.

from node-webrtc.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

So you're running ninja -C lib/libwebrtc/trunk/out/Release and getting errors?

from node-webrtc.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

OK, let me know if you run into more problems and I'll give help.

from node-webrtc.

kofd avatar kofd commented on May 12, 2024

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.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

kofd avatar kofd commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

JessieAMorris avatar JessieAMorris commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@JessieAMorris i just set up a channel #wrtc on irc.mozilla.org

from node-webrtc.

modeswitch avatar modeswitch commented on May 12, 2024

@kofd could you add some instructions for running the example you committed?

from node-webrtc.

JessieAMorris avatar JessieAMorris commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

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.

modeswitch avatar modeswitch commented on May 12, 2024

@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.

kofd avatar kofd commented on May 12, 2024

@modeswitch Yeah, I'll get the latest version running on my dev env sometime this weekend and write it up

from node-webrtc.

kofd avatar kofd commented on May 12, 2024

Sorry I haven't been able to write anything up, I've been getting the "gclient_runhooks failed: 2 null" error

from node-webrtc.

blakelapierre avatar blakelapierre commented on May 12, 2024

Checkout PR #136, updates the code to get remote MediaStream forwarding working.

from node-webrtc.

modeswitch avatar modeswitch commented on May 12, 2024

Native backend won't support media streams.

from node-webrtc.

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.