diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-05 11:36:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-05 11:38:17 +0100 |
commit | df1db951c512a58110171d046ef367789df02733 (patch) | |
tree | a8894b4a4864d9e378923f011b4ca9d206e2ee0b /shared | |
parent | 8dd754c76735417305c4b68e2ada6f623e9d7650 (diff) | |
download | PeerTube-df1db951c512a58110171d046ef367789df02733.tar.gz PeerTube-df1db951c512a58110171d046ef367789df02733.tar.zst PeerTube-df1db951c512a58110171d046ef367789df02733.zip |
Support RTMPS
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/server/server.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/live/live-video.model.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/shared/extra-utils/server/server.ts b/shared/extra-utils/server/server.ts index f7048ba43..1ed00d724 100644 --- a/shared/extra-utils/server/server.ts +++ b/shared/extra-utils/server/server.ts | |||
@@ -56,6 +56,7 @@ export class PeerTubeServer { | |||
56 | port?: number | 56 | port?: number |
57 | 57 | ||
58 | rtmpPort?: number | 58 | rtmpPort?: number |
59 | rtmpsPort?: number | ||
59 | 60 | ||
60 | parallel?: boolean | 61 | parallel?: boolean |
61 | internalServerNumber: number | 62 | internalServerNumber: number |
@@ -154,6 +155,7 @@ export class PeerTubeServer { | |||
154 | 155 | ||
155 | this.internalServerNumber = this.parallel ? this.randomServer() : this.serverNumber | 156 | this.internalServerNumber = this.parallel ? this.randomServer() : this.serverNumber |
156 | this.rtmpPort = this.parallel ? this.randomRTMP() : 1936 | 157 | this.rtmpPort = this.parallel ? this.randomRTMP() : 1936 |
158 | this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937 | ||
157 | this.port = 9000 + this.internalServerNumber | 159 | this.port = 9000 + this.internalServerNumber |
158 | 160 | ||
159 | this.url = `http://localhost:${this.port}` | 161 | this.url = `http://localhost:${this.port}` |
diff --git a/shared/models/videos/live/live-video.model.ts b/shared/models/videos/live/live-video.model.ts index d6e9a50d1..815a93804 100644 --- a/shared/models/videos/live/live-video.model.ts +++ b/shared/models/videos/live/live-video.model.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | export interface LiveVideo { | 1 | export interface LiveVideo { |
2 | rtmpUrl: string | 2 | rtmpUrl: string |
3 | rtmpsUrl: string | ||
4 | |||
3 | streamKey: string | 5 | streamKey: string |
4 | saveReplay: boolean | 6 | saveReplay: boolean |
5 | permanentLive: boolean | 7 | permanentLive: boolean |