Open pkasidit opened 4 years ago
Me too
@pkasidit and @ganholete you have to add following lines in your css class_name .webcam-wrapper, .webcam-wrapper video { width: 100% !important; height: 100% !important; }
If using angular, I solved it like this:
/* cascade style to all child elements of a component, but not to any other element on the page */
:host ::ng-deep {
.webcam-container .webcam-wrapper, .webcam-wrapper video {
width: 100% !important;
height: 100% !important;
}
}
This way, your component does not need to have encapsulation set to None.
@Component({
encapsulation: ViewEncapsulation.None,
Taken from here: https://blog.angular-university.io/angular-host-context/
I have solved it with this
::ng-deep .webcam-container .webcam-wrapper, .webcam-wrapper video { width: 100% !important; height: 100% !important; }
you need to put it on the style file of the component where you are using it
I need to set style width:100% to video element. I see class on that element but can not set by [class].