视频播放已学完不显示跳转进度条

This commit is contained in:
禺狨 2023-03-31 09:40:36 +08:00
parent c2a26706c8
commit 519907de2a
2 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,7 @@ export const HourCompenent: React.FC<PropInterface> = ({
id={currentId} id={currentId}
title={currentTitle} title={currentTitle}
open={visible} open={visible}
progress={progress}
isLastpage={isLastpage} isLastpage={isLastpage}
lastSeeDuration={lastSeeDuration} lastSeeDuration={lastSeeDuration}
onCancel={() => { onCancel={() => {

View File

@ -13,6 +13,7 @@ interface PropInterface {
open: boolean; open: boolean;
isLastpage: boolean; isLastpage: boolean;
lastSeeDuration: number; lastSeeDuration: number;
progress: number;
onCancel: () => void; onCancel: () => void;
goNextVideo: () => void; goNextVideo: () => void;
} }
@ -24,6 +25,7 @@ export const VideoModel: React.FC<PropInterface> = ({
open, open,
isLastpage, isLastpage,
lastSeeDuration, lastSeeDuration,
progress,
onCancel, onCancel,
goNextVideo, goNextVideo,
}) => { }) => {
@ -38,7 +40,7 @@ export const VideoModel: React.FC<PropInterface> = ({
useEffect(() => { useEffect(() => {
let params = null; let params = null;
if (open) { if (open) {
if (lastSeeDuration > 0) { if (lastSeeDuration > 0 && progress < 100) {
params = { params = {
time: 5, time: 5,
pos: lastSeeDuration, pos: lastSeeDuration,