Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
use nodejs as streaming server
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chi Linh Le  
View profile  
 More options Sep 20 2012, 12:19 am
From: Chi Linh Le <lclin...@gmail.com>
Date: Wed, 19 Sep 2012 21:19:01 -0700 (PDT)
Local: Thurs, Sep 20 2012 12:19 am
Subject: use nodejs as streaming server

Hi All

I am building a app with push-to-talk (conference call) function.
Model of app as below.

client A--(voice data)--->server (nodejs)--(voice data)--->client B

I have some question.

1. How do get voice data from client?
2. How do send voice data to all connected client?

Anyhelp is appreciated!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Caswell  
View profile  
 More options Sep 20 2012, 11:54 am
From: Tim Caswell <t...@creationix.com>
Date: Thu, 20 Sep 2012 10:54:05 -0500
Local: Thurs, Sep 20 2012 11:54 am
Subject: Re: [nodejs] use nodejs as streaming server
I would start by reading up on audio encoding formats.  This alone is
a pretty complex topic.  Also, what is you client, what capabilities
does it have?  If the client is a browser that's very different than
say a native mobile client on iOS.  As far as the node part, building
a simple data proxy is easy, but usually you want to do more.

On Wed, Sep 19, 2012 at 11:19 PM, Chi Linh Le <lclin...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chi Linh Le  
View profile  
 More options Sep 21 2012, 3:27 am
From: Chi Linh Le <lclin...@gmail.com>
Date: Fri, 21 Sep 2012 00:27:11 -0700 (PDT)
Local: Fri, Sep 21 2012 3:27 am
Subject: Re: [nodejs] use nodejs as streaming server

Thank for responding.
Assume that client is android.
I can reading voice data from device, and sent to nodejs server.
nodejs server use datagram library to receive voice data which is sent from
device.
Now, i can't find solution to send received voice data to all connected
clients.

Here is some code on server side
/////////////////////////////////////////////////////////////////////////// ////////////////
var http = require('http'),
    dgram = require('dgram'),
    socketio = require('socket.io');

var app = http.createServer(handleRequest),
    io = socketio.listen(app),
    socket = dgram.createSocket('udp4');

socket.on('message', function(content, rinfo) {
    console.log('got message', content, 'from', rinfo.address, 'port
',rinfo.port);

io.sockets.emit('udp_message', 'test',rinfo.port);
 socket.send(content, 0, content.length, 50006, rinfo.address,
function(err, bytes) {
//socket.close();

});

 });

function handleRequest(req, res) {

    res.writeHead(200, {'content-type': 'text/html'});
    res.end("<!doctype html> \
        <html><head> \
        <script src='/socket.io/socket.io.js'></script> \
        <script> \
            var socket = io.connect('localhost', {port: 8000}); \
            socket.on('udp message', function(message) {
console.log(message) }); \
        </script></head></html>");

}

socket.bind(50005);
app.listen(8000);
/////////////////////////////////////////////////////////////////////////// ////////////////

I am waiting for your respons.

2012年9月20日木曜日 22時54分17秒 UTC+7 Tim Caswell:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Le Tien Nam  
View profile  
 More options Sep 21 2012, 8:49 am
From: Le Tien Nam <namlet...@vccorp.vn>
Date: Fri, 21 Sep 2012 05:49:50 -0700 (PDT)
Local: Fri, Sep 21 2012 8:49 am
Subject: Re: use nodejs as streaming server

I need to  explore  this problem.
this is example about tropo on nodejs server:
http://www.youtube.com/watch?v=Qqok884axLM

I wish we will discuss more!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »