openvidu-components: Added black poster when video is muted

pull/731/head
csantosm 2022-05-31 17:08:39 +02:00
parent 2785d3c036
commit 5fa3f749f5
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,10 @@
.poster {
height: 100%;
width: 100%;
background-color: #000000;
}
.initial {
position: absolute;
display: inline-grid;
z-index: 1;

View File

@ -7,8 +7,10 @@ import { Component, Input } from '@angular/core';
@Component({
selector: 'ov-avatar-profile',
template: `
<div class="poster" [ngStyle]="{ 'background-color': color }">
<span id="poster-text">{{ letter }}</span>
<div class="poster">
<div class="initial" [ngStyle]="{ 'background-color': color }">
<span id="poster-text">{{ letter }}</span>
</div>
</div>
`,
styleUrls: ['./avatar-profile.component.css']