mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
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() {
|
function retryVideoAfterFailure() {
|
||||||
const player = playerRef.current;
|
const player = playerRef.current;
|
||||||
|
console.log(player);
|
||||||
if (player) {
|
if (player) {
|
||||||
setReload(Date.now());
|
setReload(Date.now());
|
||||||
showTapButton(TAP.NONE);
|
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
|
// Update video player and reload when source URL changes
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const player = playerRef.current;
|
|
||||||
|
|
||||||
// For some reason the video player is responsible for detecting content type this way
|
// For some reason the video player is responsible for detecting content type this way
|
||||||
fetch(source, { method: 'HEAD' }).then(response => {
|
fetch(source, { method: 'HEAD' }).then(response => {
|
||||||
const player = playerRef.current;
|
const player = playerRef.current;
|
||||||
|
|
Loading…
Add table
Reference in a new issue