JSON Movie Playlist – crossfade between current and next

Hi there,

I’m trying to build a network that has a JSONDAT which loads a JSON file with a scenes array.

Each scene has a startTime, an endTime and a video property.

I setup two JSONDAT behind that named current_scene and next_scene. These filter the JSON like so: "$.scenes[?(@.endTime > " + str(root.time.seconds) + ")]" for current and "$.scenes[?(@.endTime > " + str(op('current_scene').result['endTime']) + ")]" for next.

Then two MOVIEFILEIN that load like so 'the-videos/' + op('current_scene').result['video'] (and next_scene).

I can’t figure out how to trigger a crossfade between these movies when current and next scene change… can somebody hint me in the right direction?

Thank you very much,
Hans

Hi @honsey,

for your specific process a DAT Execute DAT could be of use where the crossfade could be triggered by a onCellChange callback.

If this works for your purposes great - if you run into issues, you might want to think about this all as a kind of state machine that can best be emulated with a Timer CHOP to include preloading and unloading of movies for better performance etc. But again - if your approach works for your purposes - perfect.

cheers
Markus