fabioricali / doz-fake-video-player

doz-fake-video-player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doz-fake-video-player

This component shows a sequences of images with a play button

Install

npm install doz-fake-video-player

Live here

Example

import Doz from 'doz'
import DozFakePlayer from 'doz-fake-video-player'

new Doz({
    root: '#app',
    template(h) {
        return h`
            <${DozFakePlayer}
                images="[
                    'https://radionorba.it/videothumb/0001.jpg',
                    'https://radionorba.it/videothumb/0002.jpg',
                    'https://radionorba.it/videothumb/0003.jpg',
                    'https://radionorba.it/videothumb/0004.jpg',
                    'https://radionorba.it/videothumb/0005.jpg'
                ]"
            />
        `
    }
});

Props

| Name | Default | Description | | images | '' | array of frames |

CDN unpkg

<script src="https://unpkg.com/doz-fake-video-player/dist/bundle.min.js"></script>

Changelog

You can view the changelog here

License

doz-fake-video-player is open-sourced software licensed under the MIT license

About

doz-fake-video-player


Languages

Language:JavaScript 96.8%Language:Shell 3.2%