初始化gif插件

This commit is contained in:
Harvey Zack committed 2018-12-06 11:01:24 +08:00
1 parent 7fc370b6d9
commit ca31357292
16 files changed
+3296 -3

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
node_modules
.DS_Store
yarn.lock
package-lock.json
test
coverage
.nyc_output
.cache
docs
+1
View File
@@ -0,0 +1 @@
package-lock=false
+3
View File
@@ -0,0 +1,3 @@
# artplayer-plugin-gif
Gif plugin for ArtPlayer
@@ -0,0 +1,27 @@
{
"name": "artplayer-plugin-gif",
"version": "1.0.5",
"description": "Gif plugin for ArtPlayer",
"main": "dist/artplayer-plugin-gif.js",
"style": "dist/artplayer-plugin-gif.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",
"dependencies": {
"gifshot": "^0.4.5"
}
}
@@ -0,0 +1,11 @@
import gifshot from 'gifshot';
function artplayerPluginGif(art) {
console.log(gifshot);
return {
name: 'artplayerPluginGif',
};
}
window.artplayerPluginGif = artplayerPluginGif;
export default artplayerPluginGif;