Skip to main content
Participant
June 6, 2009
Question

STREAMING WITH VIDEODISPLAY

  • June 6, 2009
  • 1 reply
  • 1031 views

hi to all,

I am using flex 3.0 and FMS .I want to create a application where when we click on image and related video play in videoDisplay.when we click on images, some videos properly working but some videos given connectionError Problem.

When we give source direct to videoDisplay it properly play which gives me connection Problem.

Please help me.

Thanks in advance.

Priyanka Seth.

    This topic has been closed for replies.

    1 reply

    June 6, 2009

    Sounds to me like the event resulting from clicking the image isn't providing a valid source for the videoDisplay, but really, it's all guesswork until you post your code.

    Can you post the code for your event and handler?

    Participant
    June 8, 2009

    hi,

    Thanks for answer.Sorry I can't submit my code.But here is a sample of code:

    <mx:VideoDisplay

    id="Vid" source="rtmp://myAccount/gmediacenter/ig080605_7row" width="100%" height="100%" volume="{volSlider.value}" autoPlay="false" maintainAspectRatio="true" bufferTime="1"

    />

    Its working.

    public

    {

    timer=

    new Timer(5000,1);

    Global.showvideoPlayer=

    true;

    Vid.source='rtmp://myAccount/gmediacenter/ig080605_7row';

    function init():void

    Vid.addEventListener(VideoEvent.STATE_CHANGE,onState);

    }

    <mx:VideoDisplay id="Vid" width="100%" height="100%" volume="{volSlider.value}" autoPlay="false" maintainAspectRatio="true" bufferTime="1" />

    its not working. its given Error:'Unable to make connection to server or to find FLV on server '.If i passed another url of video after this error.Its not working.

    Thanks in advance.

    Priyanka Seth

    June 8, 2009

    Are all of the video files in FLV format? Also, is the server local, or are  you replacing the FMS domain with "myAccount" in the urls?