Skip to content

Commit

Permalink
VideoPlayer: Only print dimensions warning in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMN committed Nov 1, 2024
1 parent bcac728 commit 301ca71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/components/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
videoRect.width === 0 ||
videoRect.height === 0
) {
console.warn('Video dimensions not ready, retrying...');

if (appSettings.debug) {
console.warn('Video dimensions not ready, retrying...');
}
/* Retry after a short delay (e.g., 500ms) */
setTimeout(() => {
setRetryCount((count) => count + 1);
Expand Down

0 comments on commit 301ca71

Please sign in to comment.