PDA

View Full Version : dynamic Streaming FLV file


amvian
10-26-2004, 07:20 PM
How come I don't see my video1.flv ?
Do I make anything wrong?
Please help!!

var my_video:Video;
var my_nc:NetConnection=new NetConnection();
my_nc.connect(null);
var my_ns:NetStream=new NetStream(my_nc);
my_ns.setBufferTime(5);
my_video.attachVideo(my_ns);
my_ns.play("video1.flv");

Kennyb
10-26-2004, 07:27 PM
Did you drag a video object out from the library and give it the instance name of my_video?

amvian
10-26-2004, 07:36 PM
Thank you!

I drag a video obj from library and I can see my "flv" file. :)
If I want to play "mpeg" file, what should I need to do?

Kennyb
10-26-2004, 07:45 PM
It depends on which version of Flash you have. However, if it were me, I would use Sorenson Squeeze and covert it to a FLV first.

amvian
10-26-2004, 07:53 PM
Thank you for your help.

My boss only want to play mpeg file and he does not want to convert to flv file. :confused: I am going to use flash player 6 or later.
So what should I need to do to play mpeg file??

How should I add player control (play,pause,...) to my flv player?