fix flow error in player

This commit is contained in:
Justin Collier 2019-10-24 21:58:21 -05:00 committed by Sean Yesmunt
parent ca44581abd
commit 531ad8dc63

View file

@ -46,7 +46,7 @@ function VideoViewer(props: Props) {
const { contentType, source, setPlayingUri, onEndedCB, changeVolume, changeMute, volume, muted } = props; const { contentType, source, setPlayingUri, onEndedCB, changeVolume, changeMute, volume, muted } = props;
const videoRef = useRef(); const videoRef = useRef();
const [requireRedraw, setRequireRedraw] = useState(false); const [requireRedraw, setRequireRedraw] = useState(false);
let player = null; let player;
useEffect(() => { useEffect(() => {
const currentVideo: HTMLVideoElement | null = document.querySelector('video'); const currentVideo: HTMLVideoElement | null = document.querySelector('video');