X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-video-live%2Flive-stream-information.component.ts;h=9a5d2809bd0c6be2097c594067abec47d2f3f51f;hb=221ee1adc916684d4881d2a9c4c01954dcde986e;hp=e6142eb2e279bfba64b92a8c1c3891d878a49bd2;hpb=f8c00564e7e66c7c9d65ea044a4c1485df0e4c7c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-video-live/live-stream-information.component.ts b/client/src/app/shared/shared-video-live/live-stream-information.component.ts index e6142eb2e..9a5d2809b 100644 --- a/client/src/app/shared/shared-video-live/live-stream-information.component.ts +++ b/client/src/app/shared/shared-video-live/live-stream-information.component.ts @@ -1,6 +1,7 @@ import { Component, ElementRef, ViewChild } from '@angular/core' import { Video } from '@app/shared/shared-main' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' +import { LiveVideo } from '@shared/models' import { LiveVideoService } from './live-video.service' @Component({ @@ -12,8 +13,7 @@ export class LiveStreamInformationComponent { @ViewChild('modal', { static: true }) modal: ElementRef video: Video - rtmpUrl = '' - streamKey = '' + live: LiveVideo constructor ( private modalService: NgbModal, @@ -22,8 +22,7 @@ export class LiveStreamInformationComponent { show (video: Video) { this.video = video - this.rtmpUrl = '' - this.streamKey = '' + this.live = undefined this.loadLiveInfo(video) @@ -33,9 +32,6 @@ export class LiveStreamInformationComponent { private loadLiveInfo (video: Video) { this.liveVideoService.getVideoLive(video.id) - .subscribe(live => { - this.rtmpUrl = live.rtmpUrl - this.streamKey = live.streamKey - }) + .subscribe(live => this.live = live) } }