remove unused player
reference
This commit is contained in:
parent
3d38739be1
commit
d6e5df540e
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue