Updated player view to prevent video from being too large

This commit is contained in:
Isaac Grynsztein
2020-04-15 02:02:03 -04:00
parent a8d6298cfd
commit 0d54cb9872
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
}
.video-styles {
width: 80%;
width: 100%;
}
::ng-deep .mat-button-toggle-label-content {
@@ -64,6 +64,7 @@
.video-col {
padding-right: 0px;
padding-left: 0.01px;
height: 100%;
}
.save-icon {

View File

@@ -1,6 +1,6 @@
<div *ngIf="playlist.length > 0 && show_player">
<div [ngClass]="(type === 'audio') ? null : 'container-video'" class="container">
<div style="max-width: 100%; margin-left: 0px;" class="row">
<div style="max-width: 100%; margin-left: 0px; height: 70vh" class="row">
<div [ngClass]="(type === 'audio') ? 'my-2 px-1' : 'video-col'" class="col">
<vg-player (onPlayerReady)="onPlayerReady($event)" [style.background-color]="(type === 'audio') ? 'transparent' : 'black'">
<video [ngClass]="(type === 'audio') ? 'audio-styles' : 'video-styles'" #media class="video-player" [vgMedia]="media" [src]="currentItem.src" id="singleVideo" preload="auto" controls>