AhoyIndieMedia / ahoy.ooo

Bug and Feature Track of ahoy.ooo
1 stars 0 forks source link

Feature : Scheduled JWPLAYER Playlists #13

Open AhoyIndieMedia opened 2 years ago

AhoyIndieMedia commented 2 years ago

The Ahoy Super Schedule Overview The idea is to create a seamless TV experience - through clever switches of jwplayer src code.

Think of it like a jukebox : At 7pm - it will show XYZ playlist

24 hours a day / 3 hours = 8

8 Blocks

Block 1 = 7 Am to 10 am Block 2 = 10 AM to 1 PM Block 3 = 1PM to 4PM Block 4 = 4PM to 7PM Block 5 = 7PM to 10PM Block 6 = 10PM to 1AM Block 7 = 1AM to 4AM Block 8 = 4AM to 7AM

Steps:

Ahoy Code Blocks:

https://docs.google.com/spreadsheets/d/1r-3Wmh362BMWujtkRL3VlUgfbx2-1GD3jp4rcMDNMP0/edit?usp=sharing

AhoyIndieMedia commented 2 years ago

Research:

https://developer.jwplayer.com/jwplayer/docs/jw8-set-up-recommendations

AhoyIndieMedia commented 2 years ago

https://www.42gears.com/blog/playing-videos-at-scheduled-times-using-surevideo-for-android/

AhoyIndieMedia commented 2 years ago

https://code.daypilot.org/61574/javascript-scheduler-switching-day-week-month-views

https://pipedream.com/blog/the-simplest-way-to-run-node-code-on-a-schedule/

AhoyIndieMedia commented 2 years ago

https://cloud.google.com/scheduler

AhoyIndieMedia commented 2 years ago

https://airflow.apache.org/docs/apache-airflow/stable/index.html

AhoyIndieMedia commented 2 years ago

https://www.sitepoint.com/community/t/show-content-for-specific-time-period/30165/5

AhoyIndieMedia commented 2 years ago

https://gist.github.com/leylaso/968450

AhoyIndieMedia commented 2 years ago

https://stackoverflow.com/questions/30776440/show-div-during-specific-times-of-the-day-eg-during-store-open-hours

ahoymrag commented 2 years ago

Javascript Arrays:

https://www.w3schools.com/js/js_arrays.asp

I think a solution is going to have to be some sort of array feature

ahoymrag commented 2 years ago

https://stackoverflow.com/questions/3730159/changing-iframe-src-with-javascript

AhoyIndieMedia commented 2 years ago

http://www.dynamicdrive.com/forums/showthread.php?72399-change-iframe-at-different-time-of-day

AhoyIndieMedia commented 2 years ago

https://www.codegrepper.com/code-examples/javascript/how+to+change+iframe+url+with+javascript

AhoyIndieMedia commented 2 years ago


    day = new Date()
    hr = day.getUTCHours()

    if  ((hr == 2) || (hr == 3) || (hr == 4))
    window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")

    if  ((hr == 5) || (hr == 6) || (hr == 7))
    window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")

        if  ((hr == 8) || (hr == 9))
    window.location= (location.href="http://www.opfradio.co.uk/requests000f.html")

        if  ((hr == 10) || (hr == 11))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 12) || (hr == 13))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 14) || (hr == 15))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 16) || (hr == 17))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 18) || (hr == 19))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 20) || (hr == 21))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 22) || (hr == 23))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

        if  ((hr == 00) || (hr == 1))
    window.location= (location.href="http://www.opfradio.co.uk/requests000.html")

    </script>```
AhoyIndieMedia commented 2 years ago

https://www.tutorialspoint.com/how-do-i-trigger-a-function-when-the-time-reaches-a-specific-time-in-javascript

AhoyIndieMedia commented 2 years ago

https://www.codegrepper.com/code-examples/javascript/execute+a+function+at+a+certain+time+of+day+js

ahoymrag commented 2 years ago

https://www.youtube.com/watch?v=bl98dm7vJt0

AhoyIndieMedia commented 2 years ago

Delay that works

https://codepen.io/Richienb/pen/XGqJjr

AhoyIndieMedia commented 2 years ago

https://www.codegrepper.com/code-examples/javascript/call+a+javascript+function+at+a+specific+time+of+day