mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
refactor: Update build timestamp in Artplayer
This commit is contained in:
1 parent
e9a488792c
commit
219956cabd
12 files changed
+444
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { supportsFlex, errorHandle, query, addClass, isMobile } from './utils';
|
||||
import { supportsFlex, errorHandle, query, addClass, isMobile, replaceElement } from './utils';
|
||||
|
||||
export default class Template {
|
||||
constructor(art) {
|
||||
@@ -124,6 +124,13 @@ export default class Template {
|
||||
this.$infoClose = this.query('.art-info-close');
|
||||
this.$contextmenu = this.query('.art-contextmenus');
|
||||
|
||||
if (option.Canvas) {
|
||||
const $canvas = new option.Canvas(this.art);
|
||||
replaceElement($canvas, this.$video);
|
||||
addClass($canvas, 'art-video');
|
||||
this.$video = $canvas;
|
||||
}
|
||||
|
||||
if (option.backdrop) {
|
||||
addClass(this.$player, 'art-backdrop');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user