diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-02 15:43:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | af4ae64f6faf38f8179f2e07d3cd4ad60006be92 (patch) | |
tree | a2d39ddc138d49619f03f11e003c2302f824286c /server/models/video/video-live.ts | |
parent | 77e9f859c6ad75ba179dec74e5410cc651eaa49b (diff) | |
download | PeerTube-af4ae64f6faf38f8179f2e07d3cd4ad60006be92.tar.gz PeerTube-af4ae64f6faf38f8179f2e07d3cd4ad60006be92.tar.zst PeerTube-af4ae64f6faf38f8179f2e07d3cd4ad60006be92.zip |
Begin live tests
Diffstat (limited to 'server/models/video/video-live.ts')
-rw-r--r-- | server/models/video/video-live.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video-live.ts b/server/models/video/video-live.ts index 345918cb9..f3bff74ea 100644 --- a/server/models/video/video-live.ts +++ b/server/models/video/video-live.ts | |||
@@ -93,7 +93,11 @@ export class VideoLiveModel extends Model<VideoLiveModel> { | |||
93 | 93 | ||
94 | toFormattedJSON (): LiveVideo { | 94 | toFormattedJSON (): LiveVideo { |
95 | return { | 95 | return { |
96 | rtmpUrl: WEBSERVER.RTMP_URL, | 96 | // If we don't have a stream key, it means this is a remote live so we don't specify the rtmp URL |
97 | rtmpUrl: this.streamKey | ||
98 | ? WEBSERVER.RTMP_URL | ||
99 | : null, | ||
100 | |||
97 | streamKey: this.streamKey, | 101 | streamKey: this.streamKey, |
98 | saveReplay: this.saveReplay | 102 | saveReplay: this.saveReplay |
99 | } | 103 | } |