Hi Shannon,
I currently do almost exactly what you are after. I have
a socket class that I use to stream the binary data which I then split into the
image packets and then decode the jpegs via the Loader.loadBytes method. We use
a custom protocol with normal jpegs as the data, so for mjpeg you would probably
need to write a decoder to split the mjpeg stream into the single jpeg frames
and then use the Loader to decode them.
HTH,
Andrew
Shannon Hicks wrote:
Hey, I'm interested in trying to build out something
(in flex 2) that can accept an MJpeg stream. Basically, it's a stream of
one jpg image after another. This would be useful to potentially a bunch of
people who want to show their network webcams via
Flash/Flex2.
Anyone a tad more experienced interested in helping
me with this?
Shan
The ones at the Adobe lab from the link Darron provided work fine without
any changes.
Rich
http://www.everythingflex.com
On 10/12/06, Andrew
Trice <andrew.trice@cynergysystems.com>
wrote:
The files are old, but
they still work. I had to modify JPGEncoder.as so that it
would build correctly in Flex 2 release version. I'd attach it to this
post, but I don't have the source on this computer.
I'm not aware of any decoders.
You could always try to use a loader object to load the ByteArray using the
loadBytes method, and then copy the bitmapData from it. Or you could
look at the JPGEncoder class and reverse engineer it.
-Andy
--
Rich Tretola
<mx:EverythingFlex/>
http://www.EverythingFlex.com
--
No virus found in this incoming message.
Checked by
AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release
Date: 10/11/2006
--
No virus found in this outgoing message.
Checked by
AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/472 - Release
Date: 10/11/2006