mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:29:29 +00:00
fix none type volume and speed reading
This commit is contained in:
@@ -178,9 +178,9 @@ const VideoPlayer = ({
|
||||
localStorage.setItem('playerSpeed', videoTag.currentTarget.playbackRate.toString());
|
||||
}}
|
||||
onLoadStart={(videoTag: VideoTag) => {
|
||||
videoTag.currentTarget.volume = Number(localStorage.getItem('playerVolume')) ?? 1;
|
||||
videoTag.currentTarget.volume = Number(localStorage.getItem('playerVolume') ?? 1)
|
||||
videoTag.currentTarget.playbackRate =
|
||||
Number(localStorage.getItem('playerSpeed')) ?? 1;
|
||||
Number(localStorage.getItem('playerSpeed') ?? 1);
|
||||
}}
|
||||
onTimeUpdate={handleTimeUpdate(
|
||||
videoId,
|
||||
@@ -247,7 +247,7 @@ const VideoPlayer = ({
|
||||
</h4>
|
||||
)}
|
||||
|
||||
{Object.values(skippedSegments).map(({ from, to }) => {
|
||||
{/* {Object.values(skippedSegments).map(({ from, to }) => {
|
||||
return (
|
||||
<>
|
||||
{from !== 0 && to !== 0 && (
|
||||
@@ -257,7 +257,7 @@ const VideoPlayer = ({
|
||||
)}
|
||||
</>
|
||||
);
|
||||
})}
|
||||
})} */}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user