Skip to content
No description, website, or topics provided.
Branch: gh-pages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
dist
src
test
README.md
package.json

README.md

序列图片视频化播放器

感谢张鑫旭提供的思路

http://www.zhangxinxu.com/wordpress/2018/05/image-sequence-html5-video-play/

Demo

https://zhenhappy.github.io/images-player/test/

Install

<script type="text/javascript" src="https://zhenhappy.github.io/images-player/dist/index.js"></script>

Usage

var imagesPlayer = new ImagesPlayer('#img', list, {
    auto: true,
    loop: true,
    onLoadStart() {
        console.log('load start')
    },
    onLoadProgress(percent) {
        console.log(percent)
    },
    onLoadStop() {
        console.log('load stop')
    },
    onStart() {
        console.log('start')
    },
    onProgress(percent) {
        console.log(percent)
    },
    onPause() {
        console.log('pause')
    },
    onStop() {
        console.log('stop')
    }
})
You can’t perform that action at this time.