The Media Display has a video within it already.   For Flashcom, you need to use: MediaDisplay.contentPath, then specify the full RTMP line.

<mx:MediaDisplay contentPath="rtmp://fcs.macromedia.com/application/instance/MyVideo" height="400" width="400" />\

application: the name of the FCS application
instance: the name of the FCS applicat
myVideo: the name of the FLV file (less the .flv extension)

Hope this helps.
Kev.


Kevin Towes, Sr. Consultant
New Toronto Group, [EMAIL PROTECTED]
Office: 905-306-2790 Mobile: 416-882-4445
[onRemote]



From: Robin Hilliard <[EMAIL PROTECTED]>
Sent: February 7, 2005 7:52 PM
To: [email protected]
Subject: Re: [flexcoders] Flex and FlashCom = Referencing the MediaDisplay

Dave,

According to the Flex docs there is no attachVideo method on
mx.controls.MediaDisplay - in fact it doesn't look like it's supposed
to work witha FCS stream, only flvs or mp3s on the server using
progressive playback.

Robin


On 08/02/2005, at 1:08 PM, dave buhler wrote:

> I've built a FlashCom piece that:
>
> 1) works as a swf in HTML when built in Flash. The MovieClip shows the
> video stream from my camera
> 2) doesn't work in Flex. The MovieClip does not show the video stream
> from my camera. Nor do I get a message from the player asking for me
> to accept/decline sharing my camera.
>
> The difference:
>
> 1) In Flash, I have an instance name on my MovieClip.
> 2) In Flex, I have an ID name on my MediaDisplay.
>


Reply via email to