Skip to content

Commit

Permalink
added initial url if converted is there
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhenry committed Mar 1, 2024
1 parent 5d27119 commit 5cbe56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoPlayer/BaseVideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function BaseVideoPlayer({
const [isLoading, setIsLoading] = useState(true);
const [isBuffering, setIsBuffering] = useState(true);
const cachedUrl = url.includes('blob:') || url.includes('file:///') ? url : addEncryptedAuthTokenToURL(url);
const [sourceURL] = useState(convertToProxyURL(cachedUrl));
const [sourceURL] = useState(convertToProxyURL(cachedUrl) || cachedUrl);
const [isPopoverVisible, setIsPopoverVisible] = useState(false);
const [popoverAnchorPosition, setPopoverAnchorPosition] = useState({horizontal: 0, vertical: 0});
const videoPlayerRef = useRef(null);
Expand Down

0 comments on commit 5cbe56c

Please sign in to comment.