I'm creating a small web chat application using ASP.NET, text chat is almost done using Ajax,SQL Server but now I'm going to create a voice system also. I've googled a lot but with no real luck, what are my options? Silverlight? VoIP? or something else? I've worked a lot with SL, is it my only way of implementing voice chat in web? can I use pure ASP.NET to have voice chat? how can I use TCP/IP for voice communication? is there any online sample showing voice chat or communication?
You can use assembly for voice chat should you want to, but it's very hard. I can't give a good answer without knowing how well you know ASP.NET/C#, but VoIP isn't hard to implement Normally.
Basically, you need a codec on each end, and a protocol to transfer packets - encoded obviously - from one end to the other (Mostly UDP).
Now, When I say Normally I mean in a perfect world where network issues - mostly related to NAT - don't exist.
Also you will need something other than ASP.NET, Like a plugin (Silverlight should do, but something mainstream like flash or java are recommended) to get a bit more control of the client's PC (Microphone, speakers).
I quite doubt you can do this alone, no offence. Therefore I would recommend using a library like SIP Communicator, Here's a Tutorial and Another.
Related
I want to develop an application for voice calls between two android devices on my home network (WiFi). I'm new to programming so don't really know where to begin, I have researched around but cannot find anything that fits what I need to do.
The application has to be written in C# as I have a basic understanding of that language and it's the language I want to expand my knowledge in. I'm using MonoDevelop which allows the creation of android apps through C#.
The call will be peer to peer so very basic and no security or encryption will be necessary in these early stages of development.
All help will really be appreciated!
I'd start with this link at code project:
http://www.codeproject.com/Articles/138484/Simple-SIP-VOIP-based-phone-in-C
You will have to adapt it to android, but again is a probably a good starting point to understand how to do voice over IP.
The big things that may differ on android are:
User interface
method to get microphone input
method to play audio output
access to the IP stack
but the basic (encoding, decoding, etc...) should be there.
I'm implementing software to casino auto-play. I'm using .NET technology and C# language.
The main problem is how to capture data from casino game (here is the link to the game http://www.bet-at-home.com/redirNetentCasino.aspx?game=lrblackjack2-3h&pff=True ). I have never been dealing with Flash so I don't know a lot about this technology.
Well, I know that In the game we have server and client. Server is sending data to client and client is responding. For example server is sending information about dealt cards. My question is it's possible to capture data sent by server to client, I quess it is?? I need to now what kind of card I'm receiving. This data is sent in readable format or is ciphered?? Could you give me some hints?
The second option is to use a screen capture.. but this is very slow method. What are you thinking??
Thank you for help.
Regards,
Pablo
There are a couple of things you can do to interpret data from the game. First, you can use CheatEngine which is mostly the choice of Flash game hackers. The following links will help you get started:
How to hack flash games with cheat engine 5.5How to Cheat and Hack Flash based Games
The above method will not work for server based games like the ones hosted on Facebook. So, your second choice is capturing the network traffic and see what you can gather to attain the required information. For capturing the network from C#, you can use Pcap.NET. But before you try to do it programmatically, you should try it doing using Fiddler, which gathers plethora of information for you whenever you surf a website or when a plugin like Flash makes use of web.Get Fiddler and GL !
I need to develop a C# touch-screen desktop application with a "modern good-looking" UI.
How would you approach it? I´ve got in mind using Flash (just for the UI) or WPF... but i´m open to any idea or any third-party C# UI you´d know.
Is Flash easy to integrate with C#?
Thanks for your knowledge!
You should look for a AMF remoting library in C#.
Remoting is when you call a function on your server from flash.
AMF (version 0 or 3) is a binary format used to encode object transfered
between client and server
Weborb and fluorine are solutions for this.
see : .NET and AMF
You will probably be doing well with a third party framework to avoid the overhead of writing user interactions, controls, etc.
A couple of options are
http://xamarin.com/
http://www.resco.net/developer/mobileformstoolkit/
A review of these options is provided here.
I recall combining a flash interface with a C# back-end back in university. There's a method called fscommand() that will take a couple of string parameters (I may be mistaken, read up on it) to pass to and from the interface and the C# "code-behind".Flash is an ok option, but if I were you I'd opt for a WPF interface. I'm a huge fan of the telerik libraries, their WPF one allows you to create the most modern-looking interfaces and dashboards. Not to mention that the skills you will acquire while learning enough about wpf will be hugely beneficial in your career as a developer the way things are going (depending, obviously, on what direction you're heading).
FlashBuilder 4.6 has some nice functionality for quickly building a UI that work on a desktop or mobile device. You could use FluorineFX (free) or webOrb on a webserver to send data back and forth to a database server if that were needed. If you build it with the Flashbuilder 4.6 mobile project template, it would work on a iPad, mac, windows pc, or android device as well. Since a pc touchscreen should use the same type of finger gestures as a mobile app, this might be a nice way to go. (I don't actually have a touchscreen on my pc, but it runs well with a mouse, so I'd assume it worked with gestures too).
Adobe.tv has lots of examples of building a mobile app project (Which also runs on a PC) and there is a Flashbuilder 4.6 free trial.
http://flex.org/
Back in December I released Elpis, an open source Pandora Radio client... and then Pandora promptly squashed the ability for third party clients like mine to connect to the service without some seriously complicated work-arounds. It still somewhat works, as long as you never skip a song or change the station :P But I've pretty much ended support of Elpis because it's just not worth playing an ever harder game of cat a mouse...
So... there are a TON of streaming music services out there and I'm trying to figure out if there is at least one that has a decently open API with which I would be able to retrofit Elpis to use that service instead. I'm guess, due to licensing, the answer is going to be a definite no... but I wanted to at least query the community before giving up?
An no, I'm not talking about something like Last.FM's api that just lets you get the song info but something that actually lets you play the music. I don't really care if there's already a C# API for it... as long as it's got a REST, RPC, etc. web API, I can make it work.
Any suggestions?
I ended up recording my speaker in c# using a wasapi loopback capture routine. It has a webbrowser control so it knows the title, artist and album. The browser streams the music to my audio output jack, and a separate thread reads the music from my sound card. The only way they could ever protect against that is to stop streaming in the first place.
Spotify has an API that allows you to stream music. I've never personally used it, but a colleague of mine was working on a personal project that allowed him to change what was playing on his machine via a web service; accessible from another machine over the network or internet.
Note: I believe you need to have a Pro account to develop with it, though.
Does anybody know what audio codec do the following VoIP applications make use of for live streaming of voice over IP? I need the above information for experimenting with my own VoIP server/client written in C#.
TeamSpeak
Pfingo
Windows Live Messenger
Yahoo Messenger
TeamSpeak 3 uses Speex. Never heard of Pfingo, and no idea on the last two.
I am not sure about the first two but the last ones use proprietary protocol.
I suggest, if possible, to do experiments with clients that supports SIP