mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-30 19:54:16 -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 (
|
return (
|
||||||
<View {...css({ flexDirection: "row" }, props)}>
|
<View {...css({ flexDirection: "row" }, props)}>
|
||||||
{subtitles && subtitles.length && (
|
{subtitles && subtitles.length > 0 && (
|
||||||
<Menu
|
<Menu
|
||||||
Trigger={IconButton}
|
Trigger={IconButton}
|
||||||
icon={ClosedCaption}
|
icon={ClosedCaption}
|
||||||
|
@ -149,7 +149,7 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
|
|||||||
if (!ref.current) return;
|
if (!ref.current) return;
|
||||||
onLoad?.call(null, { duration: ref.current.duration } as any);
|
onLoad?.call(null, { duration: ref.current.duration } as any);
|
||||||
}}
|
}}
|
||||||
onProgress={() => {
|
onTimeUpdate={() => {
|
||||||
if (!ref.current) return;
|
if (!ref.current) return;
|
||||||
onProgress?.call(null, {
|
onProgress?.call(null, {
|
||||||
currentTime: ref.current.currentTime,
|
currentTime: ref.current.currentTime,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user