3.2.4 • Published 4 years ago

artplayer-plugin-playlist v3.2.4

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

artplayer-plugin-playlist

Playlist plugin for ArtPlayer

Demo

Checkout the demo from Github Pages

Install

Install with npm

$ npm install artplayer-plugin-playlist

Or install with yarn

$ yarn add artplayer-plugin-playlist
import artplayerPluginPlaylist from 'artplayer-plugin-playlist';
import 'artplayer-plugin-playlist/dist/artplayer-plugin-playlist.css';

Or umd builds are also available

<link rel="stylesheet" href="path/to/artplayer-plugin-playlist.css" />
<script src="artplayer-plugin-playlist.js"></script>

Will expose the global variable to window.artplayerPluginPlaylist.

Usage

var art = new Artplayer({
    container: '.artplayer-app',
    url: 'path/to/video.mp4',
    plugins: [
        artplayerPluginPlaylist([
            {
                title: 'video01',
                url: 'path/to/video01.mp4',
            },
            {
                title: 'video02',
                url: 'path/to/video02.mp4',
            },
        ]),
    ],
});

// Show Playlist
art.plugins.artplayerPluginPlaylist.show();

// Hide Playlist
art.plugins.artplayerPluginPlaylist.hide();

// Next Playlist item
art.plugins.artplayerPluginPlaylist.next();

// Prev Playlist item
art.plugins.artplayerPluginPlaylist.prev();

License

MIT © Harvey Zack

3.2.4

4 years ago

3.2.3

4 years ago

3.1.19

5 years ago

3.1.18

5 years ago

3.1.17

5 years ago

3.1.16

5 years ago

3.1.15

5 years ago

3.1.14

5 years ago

3.1.13

5 years ago

3.1.12

5 years ago

3.1.10

5 years ago

3.1.9

5 years ago

3.1.8

5 years ago

3.1.7

5 years ago