Bluekylin's Blog

   Think —> Learn —> Done
posts - 110, comments - 749, trackbacks - 4, articles - 29

Unload .flv file from FLVPlayback

Posted on 2006-07-21 20:04 Bluekylin 阅读(2309) 评论(7) 编辑 收藏

Today,I get an idea to add metadata before the flv file playing on my FLV Player.
But when the flv file checked lack of metadata ,it can't be added on directly by flvmdi.
Because the checking process is based on the file loaded.In other words, the metadata can't be added while the flv is used by another program.(It's easy to understand that you can't modify a file while it is used by another program.)
So,I need to unload the flv file from the FLVPlayback.

 It's never a problem after I learned how to smoothing the video in FLVPlayback a few days ago.(flvplayback.getVideoPlayer(flvplayback.activeVideoPlayerIndex)._video.smoothing=true).

Just use
flvplayback.getVideoPlayer(flvplayback.activeVideoPlayerIndex).close()
to unload the loaded flv file.

"getVideoPlayer" return a videoplayer object,and it has a method to unload video object —>close().
Enjoy!

Feedback

#1楼  回复 引用   

2007-01-18 11:21 by Allenliao[未注册用户]
這文張幫了我一個大忙!
感謝你!

#2楼  回复 引用   

2007-01-19 15:31 by 网友[未注册用户]
非常感谢,好人呀!

#3楼  回复 引用   

2007-06-12 13:20 by William Haun[未注册用户]
Bless you! You solved my issue - thanks a ton!

#4楼  回复 引用   

2007-06-12 13:20 by William Haun[未注册用户]
Bless you! you solved my problem!

#5楼  回复 引用   

2008-01-17 21:31 by anlic[未注册用户]
Bless you! you solved my problem!

#6楼  回复 引用   

2008-06-18 23:02 by Nakid[未注册用户]
Thanks veeeeeeeeeery much!!!

Bye!!!

#7楼  回复 引用   

2008-06-19 12:37 by Amer[未注册用户]
Thanks - this is great.