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

[player] Fix disabling mute button of audios and videos

- Use the same default state for interactiveMuteControl
and for playerProps.interactiveMuteControl
parent 632ae45e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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>
......
......@@ -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:
......
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