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

Using video clips #12

Open
LRV opened this issue Nov 12, 2021 · 1 comment
Open

Using video clips #12

LRV opened this issue Nov 12, 2021 · 1 comment

Comments

@LRV
Copy link

LRV commented Nov 12, 2021

I have been trying to get video to load into the canvas along with images. I almost have it, while the video frame displays i am not getting all frames to draw. I have triggered the video object to play and was trying a redraw in tick but it only plays video frames during the transition and then stops.

I bet i could figure it out with more time but i am kind of in a crunch to show some progress. Any pointers on what could be done to achieve videos playing and transitioning with images?

@yomotsu
Copy link
Owner

yomotsu commented Nov 13, 2021

Thanks for using this library.

Actually, that is expected behavior...(but we could change it)

I have only used static images, and to avoid unnecessary render for static IMAGEs, render() only happens during transitions, currently.
see:

if ( this._hasUpdated ) this.render();

this._hasUpdated condition should be ignored if the resource is video.
Would you mind making a PR for the change...?

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

2 participants