mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
build all packages
This commit is contained in:
1 parent
773714f739
commit
89fecf5488
22 files changed
+60
-57
No files matched your search
@@ -10,7 +10,6 @@ export default function eventInit(art, player) {
|
||||
notice,
|
||||
} = art;
|
||||
|
||||
let firstCanplay = false;
|
||||
let reconnectTime = 0;
|
||||
const maxReconnectTime = 5;
|
||||
|
||||
@@ -29,14 +28,6 @@ export default function eventInit(art, player) {
|
||||
// });
|
||||
|
||||
art.on('video:canplay', () => {
|
||||
if (!firstCanplay) {
|
||||
firstCanplay = true;
|
||||
if (option.autoplay) {
|
||||
player.play();
|
||||
}
|
||||
art.emit('firstCanplay');
|
||||
}
|
||||
|
||||
reconnectTime = 0;
|
||||
art.controls.show();
|
||||
art.mask.show();
|
||||
|
||||
Reference in new issue
Block a user