mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:33:21 -08:00
添加长宽比和播放速度
This commit is contained in:
1 parent
f6c236c260
commit
af82edb847
13 files changed
+247
-65
No files matched your search
+11
-6
@@ -106,14 +106,19 @@ export default class Info {
|
||||
});
|
||||
}
|
||||
|
||||
loop() {
|
||||
readInfo() {
|
||||
const { $infoPanel, $video } = this.art.refs;
|
||||
const types = Array.from($infoPanel.querySelectorAll('[data-video]'));
|
||||
types.forEach(item => {
|
||||
const value = $video[item.dataset.video];
|
||||
item.innerHTML = value !== undefined ? value : 'unknown';
|
||||
});
|
||||
}
|
||||
|
||||
loop() {
|
||||
this.readInfo();
|
||||
this.timer = setTimeout(() => {
|
||||
const types = Array.from($infoPanel.querySelectorAll('[data-video]'));
|
||||
types.forEach(item => {
|
||||
const value = $video[item.dataset.video];
|
||||
item.innerHTML = value !== undefined ? value : 'unknown';
|
||||
});
|
||||
this.readInfo();
|
||||
this.loop();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user