# Running erizo clients in node.js applications

**URL:** <https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208>\
**Category:** Uncategorized\
**Created:** [December 19, 2012, 3:24pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208 "2012-12-19T15:24:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvaro\_Alonso3](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/alvaro_alonso3/32/31_2.png) [@Alvaro\_Alonso3](https://discourse.lynckia.com/u/Alvaro_Alonso3)\
**Post date:** [December 19, 2012, 3:24pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208/1 "2012-12-19T15:24:40Z")

</div>

Hi all,

we have developed a new feature that may be of your interest. Now you can  
run erizo clients in a node.js application using the same API used in  
browsers only requiring a node module. The details are in our blog (  
[http://lynckia.com/blog.html](http://lynckia.com/blog.html)).

Cheers!–  
Álvaro

---

<div class="post-metadata">

**Author:** ![BryanPaluch](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@BryanPaluch](https://discourse.lynckia.com/u/BryanPaluch)\
**Post date:** [January 2, 2013, 8:03pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208/2 "2013-01-02T20:03:23Z")

</div>

Any thoughts on making the nodejs module buildable and installable with npm?

I could see it being very useful in quite a few projects I’m working on.  
Building it manually isn’t a big deal for me, but I think you would see a  
larger adoption if it was in npm. The nodejs community is waiting for this  
type of module. I did a talk at a nodejs meetup on webrtc and most of the  
questions were in regard to terminating peerconnection streams in the  
server.

Also I see in the media branch you started work on the rtsp media sink, any  
plans on doing a v4l sink? It would be cool to grab a video camera attached  
to my pc without having to set up RTSP. I imagine this is a more difficult  
hurdle since you would have to transcode the webcam raw stream.

Anyway, keep up on the good work.

-BryanOn Wednesday, December 19, 2012 10:24:40 AM UTC-5, Álvaro Alonso wrote:

> Hi all,
> 
> we have developed a new feature that may be of your interest. Now you can  
> run erizo clients in a node.js application using the same API used in  
> browsers only requiring a node module. The details are in our blog (  
> [http://lynckia.com/blog.html](http://lynckia.com/blog.html)).
> 
> Cheers!
> 
> –  
> Álvaro

---

<div class="post-metadata">

**Author:** ![Pedro\_Rodriguez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/pedro_rodriguez/32/23_2.png) [@Pedro\_Rodriguez](https://discourse.lynckia.com/u/Pedro_Rodriguez)\
**Post date:** [February 5, 2013, 3:45pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208/3 "2013-02-05T15:45:30Z")

</div>

Hi Bryan,

Yes, we have been working on this but right now is quite hardcoded for a h.264 rtsp stream for an IP camera and has not been tested on anything else.

We are using libavformat so it should be relatively easy to use other inputs and “fix” the transcoding so it is not hardcoded. We plan to do this soon, however v4l is not our priority right now, (arbitrary files is more important, for instance).

Cheers–  
Pedro Rodriguez

El martes, 5 de febrero de 2013 a las 16:10, [BryanPaluch@gmail.com](mailto:BryanPaluch@gmail.com) escribió:

> Any updates on this? I see that the media branch has had a lot of work done it it recently. I’ve been developing a jsep to sip gateway that I’d like to use erizo for media handling. My use case will be chrome clients to sip trunk, as well as chrome clients to video set top boxes.
> 
> On Thursday, January 3, 2013 7:09:49 AM UTC-5, Javier Cerviño wrote:
> 
> > Hi Bryan,
> > 
> > On Jan 2, 2013, at 9:03 PM, “[Bryan...@gmail.com](mailto:Bryan...@gmail.com) (javascript:)” \<[bryan...@gmail.com](mailto:bryan...@gmail.com) (javascript:)\> wrote:
> > 
> > > Any thoughts on making the nodejs module buildable and installable with nom?
> > 
> > Yes! We’re working on different npm modules and Ubuntu packages right now. We will announce them very soon and they will also help the installation in production scenarios. The idea is to install Erizo as a Ubuntu package, and every other component as a npm module, including this node.js based client.
> > 
> > > I could see it being very useful in quite a few projects I’m working on. Building it manually isn’t a big deal for me, but I think you would see a larger adoption if it was in npm. The nodejs community is waiting for this type of module. I did a talk at a nodejs meetup on webrtc and most of the questions were in regard to terminating peerconnection streams in the server.
> > > 
> > > Also I see in the media branch you started work on the rtsp media sink, any plans on doing a v4l sink? It would be cool to grab a video camera attached to my pc without having to set up RTSP. I imagine this is a more difficult hurdle since you would have to transcode the webcam raw stream.
> > 
> > Yes, that’s exactly the scenario we’re working on and we hope we will have a stable version during next weeks. We still need to implement the JavaScript APIs to set up the RTSP stream.
> > 
> > Cheers,  
> > Javier.
> > 
> > > Anyway, keep up on the good work.
> > > 
> > > -Bryan
> > > 
> > > On Wednesday, December 19, 2012 10:24:40 AM UTC-5, Álvaro Alonso wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > we have developed a new feature that may be of your interest. Now you can run erizo clients in a node.js application using the same API used in browsers only requiring a node module. The details are in our blog ([http://lynckia.com/blog.html](http://lynckia.com/blog.html)).
> > > > 
> > > > Cheers!
> > > > 
> > > > –Álvaro
> > > 
> > > –
> 
> –  
> You received this message because you are subscribed to the Google Groups “lynckia” group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [lynckia+unsubscribe@googlegroups.com](mailto:lynckia+unsubscribe@googlegroups.com) ([mailto:lynckia+unsubscribe@googlegroups.com](mailto:lynckia+unsubscribe@googlegroups.com)).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![BryanPaluch](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@BryanPaluch](https://discourse.lynckia.com/u/BryanPaluch)\
**Post date:** [February 5, 2013, 3:10pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208/4 "2013-02-05T15:10:22Z")

</div>

Any updates on this? I see that the media branch has had a lot of work done  
it it recently. I’ve been developing a jsep to sip gateway that I’d like to  
use erizo for media handling. My use case will be chrome clients to sip  
trunk, as well as chrome clients to video set top boxes.On Thursday, January 3, 2013 7:09:49 AM UTC-5, Javier Cerviño wrote:

> Hi Bryan,
> 
> On Jan 2, 2013, at 9:03 PM, “[Bryan...@gmail.com](mailto:Bryan...@gmail.com) \<javascript:\>” \< [bryan...@gmail.com](mailto:bryan...@gmail.com) \<javascript:\>\> wrote:
> 
> Any thoughts on making the nodejs module buildable and installable with  
> nom?
> 
> Yes! We’re working on different npm modules and Ubuntu packages right now.  
> We will announce them very soon and they will also help the installation in  
> production scenarios. The idea is to install Erizo as a Ubuntu package, and  
> every other component as a npm module, including this node.js based client.
> 
> I could see it being very useful in quite a few projects I’m working on.  
> Building it manually isn’t a big deal for me, but I think you would see a  
> larger adoption if it was in npm. The nodejs community is waiting for this  
> type of module. I did a talk at a nodejs meetup on webrtc and most of the  
> questions were in regard to terminating peerconnection streams in the  
> server.
> 
> Also I see in the media branch you started work on the rtsp media sink,  
> any plans on doing a v4l sink? It would be cool to grab a video camera  
> attached to my pc without having to set up RTSP. I imagine this is a more  
> difficult hurdle since you would have to transcode the webcam raw stream.
> 
> Yes, that’s exactly the scenario we’re working on and we hope we will have  
> a stable version during next weeks. We still need to implement the  
> JavaScript APIs to set up the RTSP stream.
> 
> Cheers,  
> Javier.
> 
> Anyway, keep up on the good work.
> 
> -Bryan
> 
> On Wednesday, December 19, 2012 10:24:40 AM UTC-5, Álvaro Alonso wrote:
> 
> > Hi all,
> > 
> > we have developed a new feature that may be of your interest. Now you can  
> > run erizo clients in a node.js application using the same API used in  
> > browsers only requiring a node module. The details are in our blog (  
> > [http://lynckia.com/blog.html](http://lynckia.com/blog.html)).
> > 
> > Cheers!
> > 
> > –  
> > Álvaro
> 
> –

---

<div class="post-metadata">

**Author:** ![javier\_cervino1](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@javier\_cervino1](https://discourse.lynckia.com/u/javier_cervino1)\
**Post date:** [January 3, 2013, 12:09pm UTC](https://discourse.lynckia.com/t/running-erizo-clients-in-node-js-applications/208/5 "2013-01-03T12:09:49Z")

</div>

Hi Bryan,

> Any thoughts on making the nodejs module buildable and installable with nom?

Yes! We’re working on different npm modules and Ubuntu packages right now. We will announce them very soon and they will also help the installation in production scenarios. The idea is to install Erizo as a Ubuntu package, and every other component as a npm module, including this node.js based client.

> I could see it being very useful in quite a few projects I’m working on. Building it manually isn’t a big deal for me, but I think you would see a larger adoption if it was in npm. The nodejs community is waiting for this type of module. I did a talk at a nodejs meetup on webrtc and most of the questions were in regard to terminating peerconnection streams in the server.
> 
> Also I see in the media branch you started work on the rtsp media sink, any plans on doing a v4l sink? It would be cool to grab a video camera attached to my pc without having to set up RTSP. I imagine this is a more difficult hurdle since you would have to transcode the webcam raw stream.

Yes, that’s exactly the scenario we’re working on and we hope we will have a stable version during next weeks. We still need to implement the JavaScript APIs to set up the RTSP stream.

Cheers,  
Javier.On Jan 2, 2013, at 9:03 PM, “[BryanPaluch@gmail.com](mailto:BryanPaluch@gmail.com)” [bryanpaluch@gmail.com](mailto:bryanpaluch@gmail.com) wrote:

> Anyway, keep up on the good work.
> 
> -Bryan
> 
> On Wednesday, December 19, 2012 10:24:40 AM UTC-5, Álvaro Alonso wrote:  
> Hi all,
> 
> we have developed a new feature that may be of your interest. Now you can run erizo clients in a node.js application using the same API used in browsers only requiring a node module. The details are in our blog ([http://lynckia.com/blog.html](http://lynckia.com/blog.html)).
> 
> Cheers!
> 
> –  
> Álvaro
> 
> –
