mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
构建demo
This commit is contained in:
1 parent
ca31357292
commit
b64d5d5744
5 files changed
+2819
-2698
No files matched your search
@@ -2,7 +2,8 @@
|
||||
|
||||
(function() {
|
||||
consola.creat({
|
||||
target: 'body',
|
||||
target: '.part-bottom',
|
||||
size: '100%',
|
||||
zIndex: 99,
|
||||
});
|
||||
|
||||
@@ -30,5 +31,10 @@
|
||||
art.on('firstCanplay', () => {
|
||||
var preview = document.querySelector('.art-control-preview');
|
||||
art.plugins.localPreview.attach(preview);
|
||||
art.plugins.artplayerPluginGif.create({}, image => {
|
||||
var animatedImage = document.createElement('img');
|
||||
animatedImage.src = image;
|
||||
document.querySelector('.preview').appendChild(animatedImage);
|
||||
});
|
||||
});
|
||||
})();
|
||||
Reference in new issue
Block a user