Skip to content

fix createCapture preview clipping#1289

Open
aashu2006 wants to merge 1 commit intoprocessing:mainfrom
aashu2006:createcapture-preview-fix
Open

fix createCapture preview clipping#1289
aashu2006 wants to merge 1 commit intoprocessing:mainfrom
aashu2006:createcapture-preview-fix

Conversation

@aashu2006
Copy link
Copy Markdown
Contributor

Resolves #1204

Adds Capture to the DOM check so createCapture() examples get extra preview height. Fixes the issue where the video was getting cut off below the canvas. Follows the same logic used for other DOM functions.

@aashu2006
Copy link
Copy Markdown
Contributor Author

Hi @ksen0 . This was because createCapture wasn’t included in the DOM check, so the video was getting cut off below the canvas.

added it now and example 3 looks correct.

for the other examples:

  • example 2 seems fine (video is hidden and drawn on canvas, just small)
  • example 4 is norender, so not part of this

let me know if this looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The examples on the createCapture reference don't display well

1 participant