Posted on 2006-07-21 20:04
Bluekylin 阅读(1674)
评论(7) 编辑 收藏 网摘 所属分类:
1.Flash/AS
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!