diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/angular/videos/components/watch/videos-watch.component.scss | 3 | ||||
-rw-r--r-- | client/angular/videos/components/watch/videos-watch.component.ts | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/client/angular/videos/components/watch/videos-watch.component.scss b/client/angular/videos/components/watch/videos-watch.component.scss index e69de29bb..27f34b33d 100644 --- a/client/angular/videos/components/watch/videos-watch.component.scss +++ b/client/angular/videos/components/watch/videos-watch.component.scss | |||
@@ -0,0 +1,3 @@ | |||
1 | .embed-responsive { | ||
2 | height: 100%; | ||
3 | } | ||
diff --git a/client/angular/videos/components/watch/videos-watch.component.ts b/client/angular/videos/components/watch/videos-watch.component.ts index d1b90c190..c35c0ab19 100644 --- a/client/angular/videos/components/watch/videos-watch.component.ts +++ b/client/angular/videos/components/watch/videos-watch.component.ts | |||
@@ -40,7 +40,7 @@ export class VideosWatchComponent implements OnInit, CanDeactivate { | |||
40 | console.log('Adding ' + this.video.magnetUri + '.'); | 40 | console.log('Adding ' + this.video.magnetUri + '.'); |
41 | this.client.add(this.video.magnetUri, (torrent) => { | 41 | this.client.add(this.video.magnetUri, (torrent) => { |
42 | console.log('Added ' + this.video.magnetUri + '.'); | 42 | console.log('Added ' + this.video.magnetUri + '.'); |
43 | torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => { | 43 | torrent.files[0].appendTo(this._elementRef.nativeElement.querySelector('.embed-responsive'), (err) => { |
44 | if (err) { | 44 | if (err) { |
45 | alert('Cannot append the file.'); | 45 | alert('Cannot append the file.'); |
46 | console.error(err); | 46 | console.error(err); |