简体   繁体   中英

play multiple flv file in single swf object

I have one swf object in my site.

I have to read data from database and after fetching data of video names,

I need to play those video in single swf object one by one, means after completion of first video second video will start.

Thanks in advance.

假设您正在使用NetStream,则必须侦听NetStream的onPlayStatus事件,然后使用play(...)方法加载另一个flv

Lee Brimelow has a tutorial here for building your own video player in AS3, this should help to get you started - though from the way you're talking about it I get the sense that you're not really a flash developer, you just have to work with flash for this project - so what you're asking for may be a little more complex than you expect.

First watch this:

http://gotoandlearn.com/play?id=46

Then understand that when you build a player it fires certain "events" at certain times. Like kajyr above says, you need to listen for a specific event that tells you that the current clip is over. When that even fires, you have to tell your player to play the next clip.

What you're asking for is entirely possible and even easy if you understand the basics behind it. I built a tool that handles dynamic playlisting etc at my old job and it only took about a day to give it every feature we needed. But you do need to understand how AS3 works in order to make this work.

Alternately you may be able to find some sort of video sequencing app at http://activeden.net/ - they have a lot of pre-built flash components and that's another way to go.

Simply we can create a playlist for that...

Some googeling helps me for this.

check out this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM