mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
add artplayerPluginPlaylist
This commit is contained in:
1 parent
53c5502b0f
commit
cfafcf4959
7 files changed
+89
-2
No files matched your search
@@ -3,7 +3,6 @@
|
|||||||
"version": "3.1.6",
|
"version": "3.1.6",
|
||||||
"description": "Backlight plugin for ArtPlayer",
|
"description": "Backlight plugin for ArtPlayer",
|
||||||
"main": "dist/artplayer-plugin-backlight.js",
|
"main": "dist/artplayer-plugin-backlight.js",
|
||||||
"style": "dist/artplayer-plugin-backlight.css",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"version": "3.1.6",
|
"version": "3.1.6",
|
||||||
"description": "Gif plugin for ArtPlayer",
|
"description": "Gif plugin for ArtPlayer",
|
||||||
"main": "dist/artplayer-plugin-gif.js",
|
"main": "dist/artplayer-plugin-gif.js",
|
||||||
"style": "dist/artplayer-plugin-gif.css",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
node_modules
|
||||||
|
.DS_Store
|
||||||
|
yarn.lock
|
||||||
|
package-lock.json
|
||||||
|
test
|
||||||
|
coverage
|
||||||
|
.nyc_output
|
||||||
|
.cache
|
||||||
|
docs
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
package-lock=false
|
||||||
@@ -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/)
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "artplayer-plugin-playlist",
|
||||||
|
"version": "3.1.6",
|
||||||
|
"description": "Playlist plugin for ArtPlayer",
|
||||||
|
"main": "dist/artplayer-plugin-playlist.js",
|
||||||
|
"style": "dist/artplayer-plugin-playlist.css",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/zhw2590582/ArtPlayer.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"video",
|
||||||
|
"player"
|
||||||
|
],
|
||||||
|
"author": "Harvey Zack <laozhaochaguan@gmail.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/zhw2590582/ArtPlayer/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/zhw2590582/ArtPlayer#readme"
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
function artplayerPluginPlaylist(art) {
|
||||||
|
return {
|
||||||
|
name: 'artplayerPluginPlaylist',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
window.artplayerPluginPlaylist = artplayerPluginPlaylist;
|
||||||
|
export default artplayerPluginPlaylist;
|
||||||
Reference in new issue
Block a user