diff --git a/docs/release-notes-player.txt b/docs/release-notes-player.txt index 2a0569843a5e7c42a42e99fe785171fc0888789f..3015ae3d4ac23224a444f5e9f0d092ed2fced9a2 100644 --- a/docs/release-notes-player.txt +++ b/docs/release-notes-player.txt @@ -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 diff --git a/projects/common/components/control-bar/control-bar.component.ts b/projects/common/components/control-bar/control-bar.component.ts index 78e5b8773e0d3649e89ab59b1ecc2bb23ea378fa..44b6e9b2cfd99f8991bb24634dc7a0b7bac4414e 100644 --- a/projects/common/components/control-bar/control-bar.component.ts +++ b/projects/common/components/control-bar/control-bar.component.ts @@ -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);