remove unused player reference

This commit is contained in:
DispatchCommit 2021-01-27 08:56:35 -08:00 committed by Sean Yesmunt
parent 3d38739be1
commit d6e5df540e

View file

@ -233,6 +233,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
function retryVideoAfterFailure() {
const player = playerRef.current;
console.log(player);
if (player) {
setReload(Date.now());
showTapButton(TAP.NONE);
@ -420,8 +421,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
// Update video player and reload when source URL changes
useEffect(() => {
const player = playerRef.current;
// For some reason the video player is responsible for detecting content type this way
fetch(source, { method: 'HEAD' }).then(response => {
const player = playerRef.current;