ui: use enum state for spot ready checker
This commit is contained in:
parent
ea61f09f09
commit
62c0d07fe0
1 changed files with 1 additions and 3 deletions
|
|
@ -34,9 +34,7 @@ function SpotVideoContainer({
|
|||
checkReady: () => Promise<boolean>;
|
||||
}) {
|
||||
const [prevIsProcessing, setPrevIsProcessing] = React.useState(false);
|
||||
const [processingState, setProcessingState] = React.useState<ProcessingState>(
|
||||
ProcessingState.Unchecked
|
||||
);
|
||||
const [processingState, setProcessingState] = React.useState<ProcessingState>(ProcessingState.Unchecked);
|
||||
const [isLoaded, setLoaded] = React.useState(false);
|
||||
const videoRef = React.useRef<HTMLVideoElement>(null);
|
||||
const playbackTime = React.useRef(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue