Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas Video Renderer #68

Open
uxder opened this issue Feb 5, 2021 · 0 comments
Open

Canvas Video Renderer #68

uxder opened this issue Feb 5, 2021 · 0 comments

Comments

@uxder
Copy link
Member

uxder commented Feb 5, 2021

Create a component that takes a video and renders it onto a canvas.

Why? Because the hack to acquire the pixel color of a video, doesn't work if you just apply it to a canvas in memory.
https://github.com/blinkkcode/degu/blob/main/src/dom/dom-canvas.ts#L111

So you need to:

  • take the video, put in a canvas
  • display the canvas instead of the video
    to avoid color issues.

A simple component that plays the video in canvas will resolve the issue.

Other references:
https://blinkkcode.github.io/degu/examples/canvas-image-sequence10.html
https://github.com/blinkkcode/degu/blob/main/examples/canvas-image-sequence10.js#L92

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

No branches or pull requests

1 participant