mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
优化svg
This commit is contained in:
1 parent
6d0f3cad14
commit
5c037ad08f
25 files changed
+102
-128
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { setStyle, inverseClass } from '../utils';
|
||||
import { setStyle } from '../utils';
|
||||
|
||||
export default function aspectRatioMix(art, player) {
|
||||
const { refs: { $video, $player }, i18n, notice } = art;
|
||||
|
||||
@@ -11,12 +11,6 @@ export default function eventInit(art, player) {
|
||||
player.toggle();
|
||||
});
|
||||
|
||||
config.video.events.forEach(eventName => {
|
||||
proxy($video, eventName, event => {
|
||||
art.emit(`video:${event.type}`, event);
|
||||
});
|
||||
});
|
||||
|
||||
art.on('video:loadstart', () => {
|
||||
art.loading.show();
|
||||
});
|
||||
@@ -95,4 +89,10 @@ export default function eventInit(art, player) {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
config.video.events.forEach(eventName => {
|
||||
proxy($video, eventName, event => {
|
||||
art.emit(`video:${event.type}`, event);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -23,8 +23,8 @@ import flipMix from './flipMix';
|
||||
export default class Player {
|
||||
constructor(art) {
|
||||
mountUrlMix(art, this);
|
||||
attrInit(art, this);
|
||||
eventInit(art, this);
|
||||
attrInit(art, this);
|
||||
playMix(art, this);
|
||||
pauseMin(art, this);
|
||||
toggleMix(art, this);
|
||||
|
||||
Reference in new issue
Block a user