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]); 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<{