feat: add option to change aspect ratio

This commit closes #80
This commit is contained in:
4gray committed 2021-10-24 10:26:13 +02:00
1 parent 9173a76445
commit b8a3f76c40
4 files changed
+5090 -5264

No files matched your search

@@ -9,6 +9,7 @@ import {
SimpleChanges,
} from '@angular/core';
import videoJs from 'video.js';
import '@yangkghjh/videojs-aspect-ratio-panel';
@Component({
selector: 'app-vjs-player',
@@ -38,6 +39,7 @@ export class VjsPlayerComponent implements OnInit, OnDestroy {
this.volume(100);
}
);
this.player['aspectRatioPanel']();
}
/**
+1
View File
@@ -5,6 +5,7 @@ $material-icons-font-path: '~material-icons/iconfont/';
@import '~material-icons/iconfont/material-icons.scss';
@import '~@angular/material/theming';
@import 'themes/';
@import '~@yangkghjh/videojs-aspect-ratio-panel/dist/videojs-aspect-ratio-panel.css';
@include mat-core();