mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
typofix
This commit is contained in:
1 parent
bdb050f0a7
commit
970e7e3b89
20 files changed
+23
-9
No files matched your search
@@ -5,6 +5,7 @@ export default function attrInit(art, player) {
|
||||
option,
|
||||
template: { $video },
|
||||
} = art;
|
||||
|
||||
Object.keys(option.moreVideoAttr).forEach(key => {
|
||||
$video[key] = option.moreVideoAttr[key];
|
||||
});
|
||||
|
||||
@@ -9,6 +9,7 @@ export default function eventInit(art, player) {
|
||||
i18n,
|
||||
notice,
|
||||
} = art;
|
||||
|
||||
let firstCanplay = false;
|
||||
let reconnectTime = 0;
|
||||
const maxReconnectTime = 5;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
export default function seekMix(art, player) {
|
||||
const { $video } = art.template;
|
||||
Object.defineProperty(player, 'loaded', {
|
||||
get: () =>
|
||||
art.template.$video.buffered.length
|
||||
? art.template.$video.buffered.end(art.template.$video.buffered.length - 1) / art.template.$video.duration
|
||||
: 0,
|
||||
get: () => ($video.buffered.length ? $video.buffered.end($video.buffered.length - 1) / $video.duration : 0),
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user