Unload. FLV file from flvplayback

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.