Skip to content

Commit

Permalink
fix video element snapshotting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadman97 committed Oct 1, 2024
1 parent 953c8d1 commit cf58a5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rrweb/src/record/observers/canvas/canvas-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,6 @@ export class CanvasManager {
// we don't want to crash the worker by sending an undefined bitmap
// if the video is not yet rendered.
if (
video.width === 0 ||
video.height === 0 ||
actualWidth === 0 ||
actualHeight === 0 ||
boxWidth === 0 ||
Expand All @@ -457,6 +455,10 @@ export class CanvasManager {
this.debug(video, 'not yet ready', {
width: video.width,
height: video.height,
actualWidth,
actualHeight,
boxWidth,
boxHeight,
});
return;
}
Expand Down

0 comments on commit cf58a5b

Please sign in to comment.