This prototype works when the preview reloads after a code change, but breaks when pressing the reload button. After some tests it looks like it has something todo with a videoLayer in a mask. All other prototypes work fine...
Here is a screencast, or try the prototype itself:https://www.dropbox.com/s/bolehx1u1tqcjvb/Reload.zip
I've experienced a similar behavior when using a prores4444-encoded RGBA video.
IIRC it sometime wouldn't play unless I saved the file (via CMD+S). Reloading it via the button or CMD+R didn't work.
Are you playing the video within a mask as well?
It does play the video occasionally on reload, however the event-triggered animation are never working after CMD+R
Hey Thijs I kind of know what it is. For some reason if you only create the videolayer after the dom is ready it actually works. I just don't really get why so I have to dive deeper into it for a proper fix. Until then you can just wrap it in a domComplete like this: http://cl.ly/0C0I3J1j0f3U
That is really helpful, thanks Koen!
Alternatively, you could also wrap your code within this function: myVid.oncanplaythrough
Where you can target the variable you've set your videoLayer to specifically. This runs when your video can run all the way through.