Make the video responsive
This commit is contained in:
parent
d908a155df
commit
cb11e77570
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
|||
.embed-responsive {
|
||||
height: 100%;
|
||||
}
|
|
@ -40,7 +40,7 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
|
|||
console.log('Adding ' + this.video.magnetUri + '.');
|
||||
this.client.add(this.video.magnetUri, (torrent) => {
|
||||
console.log('Added ' + this.video.magnetUri + '.');
|
||||
torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
|
||||
torrent.files[0].appendTo(this._elementRef.nativeElement.querySelector('.embed-responsive'), (err) => {
|
||||
if (err) {
|
||||
alert('Cannot append the file.');
|
||||
console.error(err);
|
||||
|
|
Loading…
Reference in a new issue