Yeah, I actually poked around that example too. Google didn't find it this time, but it was in the random assortment of Flex code on my desktop. The problem I found was 1) I had no idea what the class that extended MediaDisplay was doing and 2) It seemed like it was first publishing the webcam to the FCS server, then subscribing to it. Wouldn't that eat bandwidth that could be better spent on another user and I can connect to my camera locally.
Thank you for the quick reply though! The last two messages reaffirm why I've fallen in love with Flex. Great product and an even greater community.
Seth
On Mar 26, 2005, at 10:48 PM, Matt Chotin wrote:
<x-tad-bigger>And Christophe has an example here: http://www.coenraets.com/viewarticle.jsp?articleId=90</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>From:</x-tad-bigger><x-tad-bigger> Thijs Triemstra | Collab [mailto:[EMAIL PROTECTED]</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger><x-tad-bigger>Sent:</x-tad-bigger><x-tad-bigger> Saturday, March 26, 2005 7:25 PM</x-tad-bigger>
<x-tad-bigger>To:</x-tad-bigger><x-tad-bigger> [email protected]</x-tad-bigger>
<x-tad-bigger>Subject:</x-tad-bigger><x-tad-bigger> Re: [flexcoders] FlashComm video</x-tad-bigger>
Hi Seth,
I created a simple swf with the Video object in Flash and load this into Flex. Flex makes the connection with FlashCom and controls a few functions in the swf, like the connection with Camera() Let me know if you need the source and I'll sent it over.
http://www.collab.nl/flex/videomixer.mxml
Thijs
Op 27-mrt-05 om 4:55 heeft Seth Voltz het volgende geschreven:
Greetings,
So I have been trolling the web, searching newsgroups, mail archives, forums, etc... I can't find a way to embed the Flash video object in my flex project for streaming video via FCS and capturing my webcam. I have tried the following code as a last ditch effort and it also fails (well, it compiles and loads, no errors... but it doesn't do anything)
<x-tad-bigger>// Layout Section of index.mxml</x-tad-bigger>
<x-tad-bigger> <mx:Box id="video_box" width="160" height="120" initialize="videoInit()" borderStyle="solid" /></x-tad-bigger>
<x-tad-bigger> <mx:Button label="Attach Webcam" id="cam_btn" click="controlCam()" /></x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>// Script section of index.mxml</x-tad-bigger>
<x-tad-bigger> function videoInit ( ) {</x-tad-bigger>
<x-tad-bigger> camera_vid = Video ( video_box.createChild ( Video, "camera_vid", { _x: 0, _y: 0, _width: 160, _height: 120 } ));</x-tad-bigger>
<x-tad-bigger> camera_vid.width = video_box.width;</x-tad-bigger>
<x-tad-bigger> }</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>function controlCam ( ) {</x-tad-bigger>
<x-tad-bigger> if ( cam_btn.label == "Attach Webcam" ) {</x-tad-bigger>
<x-tad-bigger> camera_vid.attachVideo ( Camera.get ( ));</x-tad-bigger>
<x-tad-bigger> cam_btn.label = "Detach Webcam";</x-tad-bigger>
<x-tad-bigger> } else {</x-tad-bigger>
<x-tad-bigger> camera_vid.attachVideo ( null );</x-tad-bigger>
<x-tad-bigger> cam_btn.label = "Attach Webcam";</x-tad-bigger>
<x-tad-bigger> }</x-tad-bigger>
<x-tad-bigger> }</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>So my question is: How do I embed a webcam image, and then by extension link another similar video object to an FCS stream?
Thanks,
Seth
Yahoo! Groups Sponsor
<x-tad-smaller>ADVERTISEMENT</x-tad-smaller>
<22305_0205_016_b_300250_a.gif>
<l.gif>
Yahoo! Groups Links
• To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
• To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
• Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
PGP.sig
Description: This is a digitally signed message part

