Switching between multiple videos
in
Core Library Questions
•
1 year ago
Hello all, hopefully some of you can help with this issue. I've written an application in processing that once a minute checks the current system time and compares this to a number of video files in a folder. If the time matches a video filename (eg 12-15.mov), that video gets played. When the video is finished, it switches back to checking the time again and waits for a new movie to be played.
The problem I'm having is to do with support for the video library for slightly older machines - I can't delete instances of the old video files when a new one is loaded with the regular Video library. I've been using the FasterMovie class (
http://www.processing.org/discourse/beta/num_1175633922.html) and have tried some QTJava methods such as disposeQTObject() in the FasterMovie class stop() method, but it only seems to free up 50% of the memory used up by the Movie object. Over time all this 'unused' memory adds up, and will probably crash the computer. Is there a solution I'm missing here?
I'm stuck with using either a 32-bit mac mini running osx 10.5.8, or a 64-bit macbook running 10.4.11. Ideally I would use Andres' excellent GSVideo library included in the alpha Processing 2 releases, but as far as I know that requires jre 1.6 which is unavailable for the two computers I have available to me.
Anyway much appreciated if anybody can help! :)
1