fix: Add missing useState import in MediaVideo
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
* and only seek when drift exceeds a threshold. This prevents audio glitching
|
* and only seek when drift exceeds a threshold. This prevents audio glitching
|
||||||
* caused by constantly setting currentTime on every frame.
|
* caused by constantly setting currentTime on every frame.
|
||||||
*/
|
*/
|
||||||
import React, { useRef, useEffect } from 'react';
|
import React, { useRef, useEffect, useState } from 'react';
|
||||||
import { useCurrentFrame } from '../player/useCurrentFrame';
|
import { useCurrentFrame } from '../player/useCurrentFrame';
|
||||||
import { useVideoConfig } from '../player/useVideoConfig';
|
import { useVideoConfig } from '../player/useVideoConfig';
|
||||||
import { usePlayerState } from '../player/PlayerContext';
|
import { usePlayerState } from '../player/PlayerContext';
|
||||||
|
|||||||
Reference in New Issue
Block a user