Simply stated: I’m trying to record audio in a browser, and get that data back up to the server.
I originally tried to capture, encode and upload the audio using Silverlight, but because of the lack of suitable client-side encoding options, I’m now giving Flash a shot (Flash has baked-in support for encoding to Speex).
I think I’ve figured out how to capture and encode the audio… But now what was easy in Silverlight, is the challenge in Flash.
- My server-side is .NET: MVC2-
- I’m open to receiving the audio in whatever manner is best- REST, WCF..
- So that’s my question:
How could one upload binary data from Flash, to a .NET server-side endpoint.
If the answer is WCF: then how would one setup the client-side proxies to communicate with the service? If the answer is REST or HTTP Post, then how would one construct this HTTP request and pass along the data? I’ve been reading up on AS3, but am new to Flash dev…
Thanks for any help!
For uploading binary data: Get the data into a
ByteArray, create aURLRequestwith the according URL and put thatByteArrayinto itsdataproperty. Then send it per POSThowever I am not sure this will help. The speex encoder is not exposed through the API. The only thing you can generally get from a sound in Flash are its raw decoded samples. Sound compression is fully transparent and is handled within the player when sounds are sent over a
NetStream.greetz
back2dos