Skip to content

Commit

Permalink
fixup! 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 cf58a5b commit 71fb8f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/rrweb/src/record/observers/canvas/canvas-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,7 @@ export class CanvasManager {
// we don't want to crash the worker by sending an undefined bitmap
// if the video is not yet rendered.
if (
actualWidth === 0 ||
actualHeight === 0 ||
boxWidth === 0 ||
boxHeight === 0
maxDim === 0
) {
this.debug(video, 'not yet ready', {
width: video.width,
Expand Down

0 comments on commit 71fb8f1

Please sign in to comment.