style: layout improvements for videoJs player

This commit is contained in:
4gray committed 2021-02-27 11:36:06 +01:00
1 parent fd8afc343d
commit f6d4bfb9cc
2 files changed
+3 -6

No files matched your search

@@ -3,5 +3,5 @@
.video-js {
position: relative !important;
width: 100% !important;
height: auto !important;
height: calc(100vh - 85px);
}
@@ -20,8 +20,8 @@ import videoJs from 'video.js';
export class VjsPlayerComponent implements OnInit, OnDestroy {
/** DOM-element reference */
@ViewChild('target', { static: true }) target: ElementRef;
/** Options of VideoJs player (see: https://github.com/videojs/video.js/blob/mastertutorial-options.html) */
@Input() options: videoJs.ComponentOptions;
/** Options of VideoJs player */
@Input() options: videoJs.PlayerOptions;
/** VideoJs object */
player: videoJs.Player;
@@ -33,9 +33,6 @@ export class VjsPlayerComponent implements OnInit, OnDestroy {
this.target.nativeElement,
{
...this.options,
/* responsive: true,
limitRenditionByPlayerDimensions: false, */
fluid: true,
autoplay: true,
},
function onPlayerReady() {