mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix time update on the web player
This commit is contained in:
parent
92b5e33940
commit
e6a6131a14
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user