Hi all, i am trying to design a SlideShow Maker in which i need to display
Videos,swfs,jpgs/...etc.
I am using swfloader control for displaying for displaying swfs/jpgs/pngs..
I am using videodisplay control to display videos..
The problem here is i will be data from a collection based on the entity in
collection we need to show the corresponding element.
Problem:-- Videos are not getting displayed but they are starting at the
backend.. i can even hear the audio playing but i cant view the video..
public var mycollection:ArrayCollection = new ArrayCollection([
{id: 1, filename: 'Car Abonded', width:400,
height:400,duration:3000,path:"abandoned
car.jpg"},
{id: 3, filename: 'Hippo.jpg', width:600, height:400,duration:3000,path:
"Hippo.jpg"},
{id: 2, filename: 'first.flv', width:500, height:400,duration:10000,path:
"first.flv"},]);
if(extens == ".flv")
{
myloader.visible=false;
myvideoloader.visible=true;
myvideoloader.source = myobj.path;
myloader.includeInLayout=false;
myvideoloader.includeInLayout=true;
myvideoloader.addEventListener(VideoEvent.READY,playvideo);
myvideoloader.autoPlay=true;
//Even the duration which i am trying to get is returning me -1 please help
me in this too.. i want to get the total duration of the videosize..
myobj.duration=myvideoloader.totalTime;
myvideoloader.stop();
myvideoloader.play();
}
<mx:VideoDisplay id="myvideoloader" width="100%" height="90%" visible="
false" >
</mx:VideoDisplay>
<mx:SWFLoader id="myloader" width="100%" height="90%" autoLoad="true">
</mx:SWFLoader>
The below is my mxml component..
The above is my arraycollection from which i get the data..
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.