Make the video responsive
authorChocobozzz <florian.bigard@gmail.com>
Thu, 28 Apr 2016 17:55:41 +0000 (19:55 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 28 Apr 2016 17:55:41 +0000 (19:55 +0200)
client/angular/videos/components/watch/videos-watch.component.scss
client/angular/videos/components/watch/videos-watch.component.ts

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..27f34b33d3118c6484f9b6d6b120eaf85a02cdf9 100644 (file)
@@ -0,0 +1,3 @@
+.embed-responsive {
+  height: 100%;
+}
index d1b90c190da842faeb1763b1f89654db10581acc..c35c0ab19f668d75655a4e858c12720963106ef7 100644 (file)
@@ -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);