mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
build:all
This commit is contained in:
1 parent
283861b198
commit
5959eb4669
137 files changed
+1869
-2351
No files matched your search
@@ -26,7 +26,6 @@ import posterMix from './posterMix';
|
||||
import autoHeightMix from './autoHeightMix';
|
||||
import cssVarMix from './cssVarMix';
|
||||
import themeMix from './themeMix';
|
||||
import titleMix from './titleMix';
|
||||
import typeMix from './typeMix';
|
||||
import stateMix from './stateMix';
|
||||
import subtitleOffsetMix from './subtitleOffsetMix';
|
||||
@@ -64,7 +63,6 @@ export default class Player {
|
||||
autoHeightMix(art);
|
||||
cssVarMix(art);
|
||||
themeMix(art);
|
||||
titleMix(art);
|
||||
typeMix(art);
|
||||
stateMix(art);
|
||||
subtitleOffsetMix(art);
|
||||
|
||||
@@ -2,7 +2,6 @@ import { secondToTime, download, def, createElement } from '../utils';
|
||||
|
||||
export default function screenshotMix(art) {
|
||||
const {
|
||||
option,
|
||||
notice,
|
||||
template: { $video },
|
||||
} = art;
|
||||
@@ -44,7 +43,7 @@ export default function screenshotMix(art) {
|
||||
def(art, 'screenshot', {
|
||||
value: async () => {
|
||||
const dataUri = await art.getDataURL();
|
||||
download(dataUri, `${option.title || 'artplayer'}_${secondToTime($video.currentTime)}.png`);
|
||||
download(dataUri, `artplayer_${secondToTime($video.currentTime)}.png`);
|
||||
art.emit('screenshot', dataUri);
|
||||
return dataUri;
|
||||
},
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { def } from '../utils';
|
||||
|
||||
export default function titleMix(art) {
|
||||
def(art, 'title', {
|
||||
get() {
|
||||
return art.option.title;
|
||||
},
|
||||
set(title) {
|
||||
art.option.title = title;
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user