From c826f34a45757b324a20f71665b44ed10e6953b5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Aug 2021 10:39:40 +0200 Subject: Limit live bitrate --- server/lib/live/shared/muxing-session.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/lib/live/shared') diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts index 709d6c615..62708b14b 100644 --- a/server/lib/live/shared/muxing-session.ts +++ b/server/lib/live/shared/muxing-session.ts @@ -54,6 +54,7 @@ class MuxingSession extends EventEmitter { private readonly streamingPlaylist: MStreamingPlaylistVideo private readonly rtmpUrl: string private readonly fps: number + private readonly bitrate: number private readonly allResolutions: number[] private readonly videoId: number @@ -83,6 +84,7 @@ class MuxingSession extends EventEmitter { streamingPlaylist: MStreamingPlaylistVideo rtmpUrl: string fps: number + bitrate: number allResolutions: number[] }) { super() @@ -94,6 +96,7 @@ class MuxingSession extends EventEmitter { this.streamingPlaylist = options.streamingPlaylist this.rtmpUrl = options.rtmpUrl this.fps = options.fps + this.bitrate = options.bitrate this.allResolutions = options.allResolutions this.videoId = this.videoLive.Video.id @@ -118,6 +121,8 @@ class MuxingSession extends EventEmitter { resolutions: this.allResolutions, fps: this.fps, + bitrate: this.bitrate, + availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(), profile: CONFIG.LIVE.TRANSCODING.PROFILE }) -- cgit v1.2.3