Try initializing UI again
This commit is contained in:
parent
1b829e095b
commit
84de5927cd
@ -41,10 +41,10 @@
|
|||||||
import KeyboardShortcutParser from '../../common/js/KeyboardShortcutParser';
|
import KeyboardShortcutParser from '../../common/js/KeyboardShortcutParser';
|
||||||
import ShortcutButton from '../../common/components/ShortcutButton';
|
import ShortcutButton from '../../common/components/ShortcutButton';
|
||||||
import ComputeActionsMixin from '../../common/mixins/ComputeActionsMixin';
|
import ComputeActionsMixin from '../../common/mixins/ComputeActionsMixin';
|
||||||
import CropModePersistence from '../../common/enums/crop-mode-persistence.enum';
|
|
||||||
import ExecAction from '../ui-libs/ExecAction';
|
import ExecAction from '../ui-libs/ExecAction';
|
||||||
import BrowserDetect from '../../ext/conf/BrowserDetect';
|
import BrowserDetect from '../../ext/conf/BrowserDetect';
|
||||||
import AspectRatio from '../../common/enums/aspect-ratio.enum';
|
import AspectRatioType from '../../common/enums/AspectRatioType.enum';
|
||||||
|
import CropModePersistence from '../../common/enums/CropModePersistence.enum';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -99,7 +99,7 @@ export default {
|
|||||||
// );
|
// );
|
||||||
},
|
},
|
||||||
testAction() {
|
testAction() {
|
||||||
window.ultrawidify.videos[0].setAr({type: AspectRatio.FitWidth});
|
window.ultrawidify.videos[0].setAr({type: AspectRatioType.FitWidth});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,8 @@ class PlayerData {
|
|||||||
dimensions: {width?: number, height?: number, fullscreen?: boolean};
|
dimensions: {width?: number, height?: number, fullscreen?: boolean};
|
||||||
private playerIdElement: any;
|
private playerIdElement: any;
|
||||||
private observer: ResizeObserver;
|
private observer: ResizeObserver;
|
||||||
|
|
||||||
|
private ui: any;
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,6 +97,8 @@ class PlayerData {
|
|||||||
this.element = this.getPlayer();
|
this.element = this.getPlayer();
|
||||||
|
|
||||||
this.notificationService = new PlayerNotificationUi(this.element, this.settings);
|
this.notificationService = new PlayerNotificationUi(this.element, this.settings);
|
||||||
|
this.ui = new PlayerUi(this.element, this.settings);
|
||||||
|
this.ui.init();
|
||||||
|
|
||||||
this.dimensions = undefined;
|
this.dimensions = undefined;
|
||||||
this.overlayNode = undefined;
|
this.overlayNode = undefined;
|
||||||
@ -121,6 +125,7 @@ class PlayerData {
|
|||||||
console.error('[Ultrawidify::PlayerData::ctor] There was an error setting up player data. You should be never seeing this message. Error:', e);
|
console.error('[Ultrawidify::PlayerData::ctor] There was an error setting up player data. You should be never seeing this message. Error:', e);
|
||||||
this.invalid = true;
|
this.invalid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user