|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
|
/* eslint-disable react/no-unused-prop-types */ |
|
|
|
|
import { Fragment, useMemo } from 'react' |
|
|
|
|
|
|
|
|
|
import { DebouncedFunc } from 'lodash' |
|
|
|
|
@ -58,7 +57,7 @@ export type ControlsPropsExtended = ControlsProps & { |
|
|
|
|
progressBarElement: JSX.Element, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const Controls = (props: ControlsProps) => { |
|
|
|
|
export const Controls = ({ ...props }: ControlsProps) => { |
|
|
|
|
const { |
|
|
|
|
activeChapterIndex = 0, |
|
|
|
|
allPlayedProgress = 0, |
|
|
|
|
@ -73,7 +72,7 @@ export const Controls = (props: ControlsProps) => { |
|
|
|
|
onTouchEnd, |
|
|
|
|
onTouchStart, |
|
|
|
|
playedProgress, |
|
|
|
|
} = { ...props } |
|
|
|
|
} = props |
|
|
|
|
|
|
|
|
|
const playBackTime = useMemo(() => { |
|
|
|
|
if (isLive || isStorage) { |
|
|
|
|
|