1 Reply Latest reply on Apr 23, 2016 1:35 AM by try67

    Sunrise/sunset video JavaScript

    Tom L d J

      I have a bit complicated question I think.

      I'm working on a project with 4 videos. I want to make a script that makes video 1 play between sunset and sunrise, video 2 play at sunrise, video 3 play between sunrise and sunset and video 4 at sunset.

      I found a code on Internet which makes it possible to calculate sunrise en sunset times on a specific area of the world. This would be great so it's not dependent on any other source. The script I'm talking about is this one: GitHub - mourner/suncalc: A tiny JavaScript library for calculating sun/moon positions and phases.

       

      can someone please tell me if the thing I want is even possible with JavaScript or am I getting it totally wrong? Thanks for the help!