The ultimate VideoLoader with rtmp support

One of the best Flash production houses in Helsinki/Finland made a quite surprising comment while making a project with us: their own Flash video player can’t handle live streams. That functionality is very easily added and I’ve used my VideoLoader class (now version 4.X) in various video projects over the years.

Maybe someone else is missing a versatile video loader too, so here’s one. And I say Loader, because this class loads, plays, pauses, buffers, sends events, handles errors and does everything you need for handling video files, but it does not have any UI. But that’s what extends VideoLoader is for!

An example:

_videoLoader = new VideoLoader();
 _videoLoader.addEventListener(VideoLoader.PLAY_PROGRESS, video_PLAY_PROGRESS);
 _videoLoader.addEventListener(VideoLoader.FILE_NOT_FOUND, videoFailed);
 _videoLoader.addEventListener(VideoLoader.CONNECTION_FAILED, videoFailed);
 _videoLoader.addEventListener(VideoLoader.STOPPED, videoStopped);
 _videoLoader.addEventListener(VideoLoader.PLAYING, videoPlaying);
 _videoLoader.addEventListener(ErrorEvent.ERROR, video_ERROR);
 _videoLoader.bufferTime = 1;

Download the source and a demo!