A
A
Alexey Lebedev2013-05-10 14:34:12
ASP.NET
Alexey Lebedev, 2013-05-10 14:34:12

ASP.NET audio chat

Such a task. There is a chat game written in HTML + JS and a couple of flash inserts. There are many rooms in the game, and I thought about making an audio chat. The server is running Windows 2008 RS2.
The idea is this: a person presses a button and speaks into the microphone, the rest of the room hears him.

As for the implementation, I vaguely imagine:
1) A flash drive is embedded in the HTML code. which is related to JS.
2) JS determines if the button is pressed, if yes, then the flash drive writes and sends to the server.
3) The server is processing and all players are listening.

The following questions arose:
1) Are there any developments or products. Ready to pay.
2) HTML won't be able to record audio, but it can play it back via ?
3) What will be the load on the server?

I would be grateful for answers to these questions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NetBUG, 2013-05-10
@swanrnd

Is it not an option to put TeamSpeak on the side? Or do you want to link to game rooms?
What is the message lifetime?
Did you write the game, or someone else? (the question is why - if you can implement the storage of a text message and the question is only in working with sound, then everything is simple; if not, then alas).
I see two options.
“online with a rare broadcast” - a radio is started on the server (shoutcast, for example), a separate channel is assigned to each room, the radio is played in the player, in a separate frame, anywhere. When you change the room, the game changes the channel. The disadvantage is that the player needs to do not quite trivial actions to broadcast.
Load - channel bitrate * number of players. There is little processor load unless the radio server re-encodes the stream.
The second is the storage of "messages". The player uses a flash drive, it saves the file in the trash with a unique name, the link remains in the room. After n time has elapsed, the file and link are deleted.
For recording, there are simple jQuery plugins - www.sajithmr.me/jrecorder-jquery - a small script on the server is required to save the file.
Modify the toy, of course, you;)
The server does not recode anything, the load is exclusively on the channel in the volume of downloading files.
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question