diff --git a/docs/release-notes-player.txt b/docs/release-notes-player.txt index 6b56ce45d23ab08de27a68283c99b42de155e251..0759f4a9d8b855d10454239a1f2be1204eddefab 100644 --- a/docs/release-notes-player.txt +++ b/docs/release-notes-player.txt @@ -2,7 +2,8 @@ Player ====== 1.12.0 - Fix the playability of dependent audios and videos -- Fix storing/restoring the playback time of audios and videos +- Fix storing/restoring of the playback time of audios and videos +- Fix disabling mute button of audios and videos - Fix the response status when re-entering the unit - Ignore blank pages when calculating the response progress - Fix position of virtual keyboard for text areas diff --git a/projects/common/components/control-bar/control-bar.component.html b/projects/common/components/control-bar/control-bar.component.html index e917fdaf1f95c6a684430932d5585e163200fb10..8bdca45418dad81a575c781a5b2d020e1b785e95 100644 --- a/projects/common/components/control-bar/control-bar.component.html +++ b/projects/common/components/control-bar/control-bar.component.html @@ -62,6 +62,7 @@ <button mat-button type="button" class="control-button" + [disabled]="!playerProperties.interactiveMuteControl" [class.enabled-control]="playerProperties.interactiveMuteControl" (click)="toggleVolume()"> <mat-icon *ngIf="!player.muted">volume_up</mat-icon> diff --git a/projects/common/util/unit-interface-initializer.ts b/projects/common/util/unit-interface-initializer.ts index e9403bc2deb4e37cbbf415a3362a6b3c834de02a..d42fe1959652517b3585a81e1a54409fafb3143e 100644 --- a/projects/common/util/unit-interface-initializer.ts +++ b/projects/common/util/unit-interface-initializer.ts @@ -167,7 +167,7 @@ export function initPlayerElement(serializedElement: Partial<UIElement>): Player muteControl: serializedElement.muteControl !== undefined ? serializedElement.muteControl as boolean : true, interactiveMuteControl: serializedElement.interactiveMuteControl !== undefined ? - serializedElement.interactiveMuteControl as boolean : true, + serializedElement.interactiveMuteControl as boolean : false, hintLabel: serializedElement.hintLabel as string || '', hintLabelDelay: serializedElement.hintLabelDelay !== undefined ? serializedElement.hintLabelDelay as number : 0, uninterruptible: