From f82ad027a30bc2d7f9862d0dcb5118ce17f7cfa7 Mon Sep 17 00:00:00 2001 From: Chuck MANCHUCK Reeves Date: Tue, 3 Dec 2024 15:05:28 -0500 Subject: [PATCH] feat: added max bitrate for archive --- packages/video/__tests__/video.test.ts | 3 ++- packages/video/lib/types/ArchiveOptions.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/video/__tests__/video.test.ts b/packages/video/__tests__/video.test.ts index 977c327c..5dacb85d 100644 --- a/packages/video/__tests__/video.test.ts +++ b/packages/video/__tests__/video.test.ts @@ -1,4 +1,4 @@ -import nock from 'nock'; +import nock from 'nock'; import { decode } from 'jsonwebtoken'; import { Auth } from '@vonage/auth'; import testDataSets from './__dataSets__'; @@ -395,6 +395,7 @@ describe('video', () => { size: 0, status: 'started', streamMode: 'auto', + maxBitrate: 0, url: null, }; diff --git a/packages/video/lib/types/ArchiveOptions.ts b/packages/video/lib/types/ArchiveOptions.ts index f7f387dc..b31eff49 100644 --- a/packages/video/lib/types/ArchiveOptions.ts +++ b/packages/video/lib/types/ArchiveOptions.ts @@ -39,4 +39,9 @@ export type ArchiveOptions = { * Stream mode for the archive. */ streamMode?: StreamMode; + + /** + * The maximum video bitrate for the archive, in bits per second + */ + maxBitrate?: number; }