mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
remove art.once('video:loadedmetadata')
This commit is contained in:
1 parent
e225966202
commit
f160d8eb61
10 files changed
+372
-396
No files matched your search
@@ -12,10 +12,8 @@ export default class Layer extends Component {
|
||||
this.name = 'layer';
|
||||
this.$parent = $layer;
|
||||
|
||||
art.once('video:loadedmetadata', () => {
|
||||
for (let index = 0; index < option.layers.length; index++) {
|
||||
this.add(option.layers[index]);
|
||||
}
|
||||
});
|
||||
for (let index = 0; index < option.layers.length; index++) {
|
||||
this.add(option.layers[index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user