aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/live-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-06 10:39:40 +0200
committerChocobozzz <me@florianbigard.com>2021-08-06 10:39:40 +0200
commitc826f34a45757b324a20f71665b44ed10e6953b5 (patch)
treeff29bdff8b4519bbdbbcd3aa0d68521ce2b06ff5 /shared/extra-utils/videos/live-command.ts
parent421ff4618da64f0849353383f690a014024c40da (diff)
downloadPeerTube-c826f34a45757b324a20f71665b44ed10e6953b5.tar.gz
PeerTube-c826f34a45757b324a20f71665b44ed10e6953b5.tar.zst
PeerTube-c826f34a45757b324a20f71665b44ed10e6953b5.zip
Limit live bitrate
Diffstat (limited to 'shared/extra-utils/videos/live-command.ts')
-rw-r--r--shared/extra-utils/videos/live-command.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/extra-utils/videos/live-command.ts b/shared/extra-utils/videos/live-command.ts
index bf9486a05..81ae458e0 100644
--- a/shared/extra-utils/videos/live-command.ts
+++ b/shared/extra-utils/videos/live-command.ts
@@ -68,11 +68,12 @@ export class LiveCommand extends AbstractCommand {
68 async sendRTMPStreamInVideo (options: OverrideCommandOptions & { 68 async sendRTMPStreamInVideo (options: OverrideCommandOptions & {
69 videoId: number | string 69 videoId: number | string
70 fixtureName?: string 70 fixtureName?: string
71 copyCodecs?: boolean
71 }) { 72 }) {
72 const { videoId, fixtureName } = options 73 const { videoId, fixtureName, copyCodecs } = options
73 const videoLive = await this.get({ videoId }) 74 const videoLive = await this.get({ videoId })
74 75
75 return sendRTMPStream(videoLive.rtmpUrl, videoLive.streamKey, fixtureName) 76 return sendRTMPStream({ rtmpBaseUrl: videoLive.rtmpUrl, streamKey: videoLive.streamKey, fixtureName, copyCodecs })
76 } 77 }
77 78
78 async runAndTestStreamError (options: OverrideCommandOptions & { 79 async runAndTestStreamError (options: OverrideCommandOptions & {