add artplayerPluginPlaylist

This commit is contained in:
zhw2590582 committed 2019-04-21 10:03:31 +08:00
1 parent 53c5502b0f
commit cfafcf4959
7 files changed
+89 -2

No files matched your search

@@ -0,0 +1,47 @@
# artplayer-plugin-playlist
Playlist plugin for ArtPlayer
## Demo
[Checkout the demo](https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-playlist.js&example=playlist) from Github Pages
## Install
Install with `npm`
```
$ npm install artplayer-plugin-playlist
```
Or install with `yarn`
```
$ yarn add artplayer-plugin-playlist
```
```js
import artplayerPluginPlaylist from 'artplayer-plugin-playlist';
```
Or umd builds are also available
```html
<script src="artplayer-plugin-playlist.js"></script>
```
Will expose the global variable to `window.artplayerPluginPlaylist`.
## Usage
```js
var art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
plugins: [artplayerPluginPlaylist],
});
```
## License
MIT © [Harvey Zack](https://sleepy.im/)