From c9837bb57ff5f7fcd345a34b267cebde85cfda34 Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:36:04 +0100 Subject: [PATCH] fix(lib): remove sample rate that are not supported by FLV --- src/NativeApiVideoLiveStreamView.ts | 2 +- src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NativeApiVideoLiveStreamView.ts b/src/NativeApiVideoLiveStreamView.ts index e1f7b27..873a552 100644 --- a/src/NativeApiVideoLiveStreamView.ts +++ b/src/NativeApiVideoLiveStreamView.ts @@ -27,7 +27,7 @@ export interface NativeLiveStreamProps extends ViewProps { isMuted: boolean; audio: { bitrate: Int32; - sampleRate?: WithDefault<8000 | 16000 | 32000 | 44100 | 48000, 44100>; + sampleRate?: WithDefault<5500 | 11025 | 22050 | 44100, 44100>; isStereo: boolean; }; zoomRatio: Float; diff --git a/src/index.tsx b/src/index.tsx index d7a3d41..e436d4d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -21,7 +21,7 @@ type ApiVideoLiveStreamProps = { isMuted?: boolean; audio?: { bitrate?: number; - sampleRate?: 8000 | 16000 | 32000 | 44100 | 48000; + sampleRate?: 5500 | 11025 | 22050 | 44100; isStereo?: boolean; }; zoomRatio?: number;