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 { .poster {
height: 100%;
width: 100%;
background-color: #000000;
}
.initial {
position: absolute; position: absolute;
display: inline-grid; display: inline-grid;
z-index: 1; z-index: 1;

View File

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