Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ch0nker committed Sep 6, 2024
1 parent 5d23745 commit 4a373d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/player/VideoSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ const VideoSettings: React.FC<SettingsProps> = ({
setHlsData(hls);
}, [hls]);

const handleQualityChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
const handleQualityChange = (index: number) => {
if (hlsData) {
hlsData.currentLevel = parseInt(event.target.value);
hlsData.currentLevel = index;
}
};

Expand Down

0 comments on commit 4a373d9

Please sign in to comment.