Skip to content

Construct VideoFrame from CanvasImageSource (including VideoFrame) #185

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

Merged

Conversation

chcunningham
Copy link
Collaborator

@chcunningham chcunningham commented Apr 19, 2021

Replaces the ImageBitmap constructor with more generic constructor for
CanvasImageSource. VideoFrame is itself a CanvasImageSource.

frame.createImageBitmap() is removed, as we can now instead call createImageBitmap(frame).

Fixes #145. Also, see #158.


Preview | Diff

Replaces the ImageBitmap constructor with more generic constructor for
CanvasImageSource. VideoFrame is itself a CanvasImageSource.

Fixes #158
@chcunningham chcunningham requested review from padenot and aboba April 19, 2021 23:05
Copy link
Collaborator Author

@chcunningham chcunningham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editors call: looks good with minor comments addressed

@chcunningham
Copy link
Collaborator Author

Editors call: consider approved % addressing minor comments

Copy link
Collaborator Author

@chcunningham chcunningham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing.

@chcunningham chcunningham merged commit 4829102 into videoframe_clone_close May 5, 2021
@chcunningham
Copy link
Collaborator Author

chcunningham commented May 5, 2021

I'll merge this back to main manually

@chcunningham chcunningham deleted the videoframe_from_canvasimagesource branch June 2, 2021 03:44
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.

4 participants