Skip to content
Snippets Groups Projects
Commit 70d3348b authored by jojohoch's avatar jojohoch
Browse files

[player] Enable autostart of audios/videos when reloading the unit

parent c465cc2e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ Player
next
- Improve the centering of the layout
- Disable logs to console in production
- Enable autostart of audios/videos when reloading the unit
1.15.0
- Fix restoring of toggle buttons
......
......@@ -125,17 +125,18 @@ export class ControlBarComponent implements OnInit, OnChanges, OnDestroy {
}
private initDelays(): void {
if (!this.started &&
(this.dependencyDissolved || this.dependencyDissolved === undefined)) {
if (this.dependencyDissolved || this.dependencyDissolved === undefined) {
this.initAutostart();
this.initHint();
if (!this.started) {
this.initHint();
}
}
}
private initAutostart(): void {
if (this.playerProperties.autostart) {
setTimeout(() => {
if (!this.started && this.dependencyDissolved) {
if (this.dependencyDissolved && !this.disabled) {
this._play();
}
}, this.playerProperties.autostartDelay);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment