My account  |  Support  |  Shopping Cart
Jumpeye Components, V3 Flash Components, Flash Components Pro, Flash V3 Components

Usage and Code Samples for Flash FLV Video Player Pro V1 Flash Component



Flash FLV Video Player Pro V1 Usage

Properties

autoStart(default=true) – if true, the player starts playing the selected track when the page containing the player loads;
bufferSeconds(default=3) – the number of seconds to buffer before beginning playback;
contentPath(default="") – if you use the player to play just one video, set the path to it here;
controlsInstanceName(default=videoPlayerControls) – the name of the movieClip on the stage containing the controls for the player. If you run multiple instances of the player, you can define different controls movieClips;
playlistInstanceName(default=videoPlayerPlaylist) – the name of the movieClip on the stage containing the playlist for the player. If you run multiple instances of the player, you can define different playlist movieClips;
scale(default=noScale) – default – the movie’s dimensions are not altered; scale – the movie is scaled proportional to fit the boundaries of the component; resize – the movie is resized to the dimensions of the component;
startVideo(default=0) – the first video from the playlist to be played;
startVolume(default=75) – the start volume of the player;
xmlPath(default="") – if you want to use the player with a playlist, set the path to the xml here;

Methods

setVideoFromPlaylist (video:Number) – plays the "video" video from the playlist;
setVolumeLevel (level:Number) – sets the volume to "level";
setSeek (percent:Number) – seeks the video to "percent";
pressPlayPause()– toggles play/pause;

Events

onComplete – returns an object with the Boolean property videoComplete, that is true when a video has ended;
onStartPlay – returns an object with videoStart property, that is true when the video has started playing;
onBufferFull – returns an object with the property bufferFull, that is true when the buffer is full;
onXmlPlaylist – returns an object with the property xmlLoaded, that is true when the xml file containing the playlist has loded;
onMetaDataInfo – returns an object with the properties videoDuration, videoWidth, videoHeight, as soon as this info is available;
onProgress – returns an object with the property progressTime, the time in seconds the video has played;
onLoadProgress – returns an object with the property loadProgress, the percent the movie has loaded;

Code Samples

//(the instance name of the component on the stage is "vp")
var myListnerObj:Object = new Object();
myListnerObj.onComplete = function(evtObj) {
trace("Video complete: "+evtObj.videoComplete);
};
myListnerObj.onStartPlay = function(evtObj) {
trace("Video start: "+evtObj.videoStart);
};
myListnerObj.onBufferFull = function(evtObj) {
trace("Buffer full: "+evtObj.bufferFull);
};
myListnerObj.onXmlPlaylist = function(evtObj) {
trace("XML loaded: "+evtObj.xmlLoaded);
};
myListnerObj.onMetaDataInfo = function(evtObj) {
trace("The Video's duration: "+evtObj.videoDuration);
trace("The Video's width: "+evtObj.videoWidth);
trace("The Video's height: "+evtObj.videoHeight);
};
myListnerObj.onProgress = function(evtObj) {
trace("Time played: "+evtObj.progressTime);
};
myListnerObj.onLoadProgress = function(evtObj) {
trace("Percent loaded: "+evtObj.loadProgress);
};
vp.addEventListener("onComplete", myListnerObj);
vp.addEventListener("onStartPlay", myListnerObj);
vp.addEventListener("onBufferFull", myListnerObj);
vp.addEventListener("onXmlPlaylist", myListnerObj);
vp.addEventListener("onMetaDataInfo", myListnerObj);
vp.addEventListener("onProgress", myListnerObj);
vp.addEventListener("onLoadProgress", myListnerObj);

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign