From 0c522e5b58a5037de0b4f578046236243846e066 Mon Sep 17 00:00:00 2001 From: YangJH Date: Sun, 7 Apr 2024 22:25:18 +0900 Subject: [PATCH 1/2] fix: fix video resolution track native crash error --- src/Video.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Video.tsx b/src/Video.tsx index f357ee1385..84e2e88399 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -221,10 +221,13 @@ const Video = forwardRef( if (!selectedVideoTrack) { return; } + const value = selectedVideoTrack?.value + ? `${selectedVideoTrack.value}` + : undefined; return { type: selectedVideoTrack?.type, - value: selectedVideoTrack?.value, + value, }; }, [selectedVideoTrack]); From f84989ce3e91a560c03ad1c3b29c80a202575142 Mon Sep 17 00:00:00 2001 From: YangJH Date: Sun, 7 Apr 2024 22:59:20 +0900 Subject: [PATCH 2/2] fix: fix type error --- src/specs/VideoNativeComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specs/VideoNativeComponent.ts b/src/specs/VideoNativeComponent.ts index 8f8d09a12d..d654ad7875 100644 --- a/src/specs/VideoNativeComponent.ts +++ b/src/specs/VideoNativeComponent.ts @@ -81,7 +81,7 @@ type SelectedVideoTrackType = WithDefault; type SelectedVideoTrack = Readonly<{ type?: SelectedVideoTrackType; - value?: Int32; + value?: string; }>; export type Seek = Readonly<{