Skip to content

Commit

Permalink
fix: fix video resolution track native crash error
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJonghun committed Apr 7, 2024
1 parent e992243 commit 0c522e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 0c522e5

Please sign in to comment.