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

same video, asynchronous play #71

Open
paul-ferragut opened this issue May 28, 2021 · 0 comments
Open

same video, asynchronous play #71

paul-ferragut opened this issue May 28, 2021 · 0 comments

Comments

@paul-ferragut
Copy link

I am using hap videos in a particle system, I can draw the same video at different positions but to play it at a different time position doesn't work.

For instance:

player.setPosition(0.1);
player.draw(videoRect.x, videoRect.y, videoRect.width/2, videoRect.height/2);
player.setPosition(0.8);
player.draw(videoRect.width / 2, videoRect.y, videoRect.width / 2, videoRect.height / 2);

draw the video two times but at the same last setPosition.

I have too many particles to load the same video multiple times.

Is there a solution to this problem?

Thank you

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