ui: force worker for hls

This commit is contained in:
nick-delirium 2024-09-13 14:34:32 +02:00
parent 62c0d07fe0
commit bc46a6910f
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -34,7 +34,9 @@ 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);