bangnoise / ofxHapPlayer

A Hap player for OpenFrameworks
Other
147 stars 46 forks source link

same video, asynchronous play #71

Open paul-ferragut opened 3 years ago

paul-ferragut commented 3 years ago

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