Skip to main content
Tom L d J
Participant
April 23, 2016
Answered

Sunrise/sunset video JavaScript

  • April 23, 2016
  • 1 reply
  • 541 views

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!

This topic has been closed for replies.
Correct answer try67

This forum is about JS in PDF files, not in web-pages.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 23, 2016

This forum is about JS in PDF files, not in web-pages.