mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-30 02:06:28 +00:00
Fix time update on the web player
This commit is contained in:
@@ -65,7 +65,7 @@ export const RightButtons = ({
|
||||
|
||||
return (
|
||||
<View {...css({ flexDirection: "row" }, props)}>
|
||||
{subtitles && subtitles.length && (
|
||||
{subtitles && subtitles.length > 0 && (
|
||||
<Menu
|
||||
Trigger={IconButton}
|
||||
icon={ClosedCaption}
|
||||
|
||||
@@ -149,7 +149,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
||||
if (!ref.current) return;
|
||||
onLoad?.call(null, { duration: ref.current.duration } as any);
|
||||
}}
|
||||
onProgress={() => {
|
||||
onTimeUpdate={() => {
|
||||
if (!ref.current) return;
|
||||
onProgress?.call(null, {
|
||||
currentTime: ref.current.currentTime,
|
||||
|
||||
Reference in New Issue
Block a user