添加自动尺寸

This commit is contained in:
Harvey Zack committed 2018-11-09 14:36:48 +08:00
1 parent 1d40d1c46b
commit 7d766ac1d5
23 files changed
+154 -54

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ export default class Controls {
constructor(art) {
id = 0;
this.art = art;
this.art.on('firstCanplay', () => {
this.art.on('video:loadedmetadata', () => {
this.init();
});
}
+2 -2
View File
@@ -39,11 +39,11 @@ export default class Progress {
this.set('loaded', player.loaded);
this.art.on('video:progress', () => {
this.set('loaded', this.loaded);
this.set('loaded', player.loaded);
});
this.art.on('video:timeupdate', () => {
this.set('played', this.played);
this.set('played', player.played);
});
this.art.on('video:ended', () => {