flash 8 external flv player

You can create your own Flash 8 player for playing external flv video files in flash.
First you have to convert your video to flv format. There are a number of flv converters and i found the
Riva FLV encoder 2.0 to work just fine. You can set the resolution and bitrate and framerate to what you want.
I used 320×240 and fifteen frames per second. Play around with the quality until you get what you want.
Keep in mind that better is bigger and takes longer to load.. Compromise is always the key.

Now, create flash file and drag a video object to the stage.
Make it the width and height you want.
Give it the instance name of video1.
Put this code in the actions layer, frame 1 of course.

stop();
// create a netConnection object
var nc:NetConnection = new NetConnection();
// connect to null because you are not using Flash Media Server 2
nc.connect(null);
// create netStream object
// and pass the netConnect object to it
var ns:NetStream = new NetStream(nc);
// attach the netStream object to the embedded video object
video1.attachVideo(ns);
// netSTream object plays the video
ns.play(”YourVideoFile.flv”);

//

Leave a Reply

You must be logged in to post a comment.