This next example will show you how to use our YMVideoContainer component. This component allows you to load an array of videos, navigate through them, and control their playback with a built-in control panel. If you have not already done so, download and unzip our Component Library, and make sure your classpath points to it. A preview of this component is available here. You can download the YMVideoContainer example FLA here, or grab the code below:
Once you have constructed an instance of the YMVideoContainer, you can set the list of videos it uses with the setVideos() function, which takes in a single array as a parameter. This array should only contain string values, and each string should be a full URL linking to an FLV file. The YMVideoContainer will treat this array like a playlist. If a movie is playing, it will pause automatically if you hide the movie player (in this case, ymvc.visible = false would do this). You can also tell it to play a particular video in the playlist with the setIndex function, which takes a uint as a parameter designating the array index of the video to play. Lastly, you can resize the video with the setSize() function, which as usual takes a width and a height value as parameters. The video will always be resized proportionately.
Both the ImageLoader and YMVideoContainer components should help you with loading media, but what if you want to display a list of media? The next example will show you how to use our SkinList component, which will allow you to easily create customizable ("skinnable") lists.
yourminis
I bookmarked this page. Thank you for given this useful post...
Posted by: FLVplayer | July 01, 2009 at 06:28 AM
Thanks all
Posted by: Komik Videolar | July 26, 2009 at 07:21 PM