com.dyc.video.VideoPlayer


September 24th, 2009

FlashVideoPlayer is an Actionscript 3.0 class that does what its called. Play’s videos!

It’s easy to use, and will quicken up your video player build time!

Download It Here.

Here is an example of how to use it (included in the download too):

import com.dyc.video.VideoPlayer;

var tempVidURL:String = 'http://tiny.cc/P85VM';

var videoPlayer:VideoPlayer = new VideoPlayer(320, 240, tempVidURL, true);
videoPlayer.x = 10;
videoPlayer.y = 10;

addChild(videoPlayer);

/*
Functions you can call on the video player!
Use these to make it work with your controls

videoPlayer.togglePause();
videoPlayer.playVideo('video.flv');
videoPlayer.resizeVideo(300, 240);
videoPlayer.setVolume(0);
*/

The next release should include playlist support, animated re-size, and a few other fun things!

I have a few other classes in the works, and I will be tossing them up here when they are done. Just some little things that make it easy to skip the grunt work and focus on the project! Eventually, I want to put it all into a nice big package to distribute together.

If you have any suggestions, leave a comment or shoot me an email!

Enjoy!


Related Posts

Leave a Reply