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

[player] Prevent audio hint text from being displayed after reloading

... a played audio file
parent ec0b7460
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ Player
======
1.14.1
- Fix restoring of toggle buttons
- Prevent audio/video hint text from being displayed after reloading a played audio/video file
- Fix marking text when the selection is empty at the end
- Improve checking of responsesProgress of compound elements
......
......@@ -40,6 +40,8 @@ export class ControlBarComponent implements OnInit, OnChanges, OnDestroy {
ngOnInit(): void {
this.dependencyDissolved = !this.playerProperties.activeAfterID;
this.playbackTime = this.playerProperties.playbackTime;
this.started = this.playbackTime > 0;
this.runCounter = Math.floor(this.playbackTime);
this.player.ondurationchange = () => this.initTimeValues();
this.player.ontimeupdate = () => {
this.currentTime = this.player.currentTime / 60;
......@@ -173,9 +175,8 @@ export class ControlBarComponent implements OnInit, OnChanges, OnDestroy {
if (!this.duration) {
if ((this.player.duration !== Infinity) && this.player.duration) {
this.duration = this.player.duration / 60;
this.currentRestTime = (this.player.duration - this.player.currentTime) / 60;
this.runCounter = Math.floor(this.playerProperties.playbackTime);
this.player.currentTime = (this.playerProperties.playbackTime - this.runCounter) * this.player.duration;
this.currentRestTime = (this.player.duration - this.player.currentTime) / 60;
this.checkDisabledState(this.runCounter);
this.checkValidState(this.runCounter);
this.sendPlaybackTimeChanged();
......
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