fix: prevents crash from occurring when using the selected video track with resolution type (#3664)
* fix: fix video resolution track native crash error * fix: fix type error
This commit is contained in:
@@ -221,10 +221,13 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
if (!selectedVideoTrack) {
|
||||
return;
|
||||
}
|
||||
const value = selectedVideoTrack?.value
|
||||
? `${selectedVideoTrack.value}`
|
||||
: undefined;
|
||||
|
||||
return {
|
||||
type: selectedVideoTrack?.type,
|
||||
value: selectedVideoTrack?.value,
|
||||
value,
|
||||
};
|
||||
}, [selectedVideoTrack]);
|
||||
|
||||
|
Reference in New Issue
Block a user