添加长宽比和播放速度

This commit is contained in:
Harvey Zack committed 2018-10-30 15:20:09 +08:00
1 parent f6c236c260
commit af82edb847
13 files changed
+247 -65

No files matched your search

+11 -6
View File
@@ -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);
}