Skip to main content
Participant
June 21, 2009
Question

Question about setting up a schedule at the server side

  • June 21, 2009
  • 1 reply
  • 497 views

Hi, I am trying to work out how to set up a schedule of a programme which plays the videos according to the server time at server side.

for example, if the time is 3 pm, plays video "tea time", 12pm, plays video "lunch time".

At the client side will be simply just able to view the video stream but no interactions.

So.  I guess I should use live streaming rather than vod, am i right? what shall I do in order to implement this scheduling idea?

If I want to provide an interface to change the live schedule, e.g. change the selection of incoming programme, would it be possible to do it?

Regards

Ken

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 22, 2009

    Hi ken,

    I did not understand your use case fully. Bit confused what exactly you want to achieve. But let me try to answer you as much I got from your post:

    1. If you want to play VOD files at periodic intervals , you can set up a timer on using server-side actionscript so that particular video plays at that particular time.

    Now i dont know how you want to achieve it - There can be two cases:

        I. You want to play video "tea time" at 3.00 P.M  irreseptive of any client connecting to it.

       II. You want to server video "tea time" to any client connecting at or after 3.00 P.M .

    In first(I) case  - you basically set up timer in server based on time. You can do two things A -, continiously call a funtion after some time interval say polling about time using setInterval and date/time objects and if it meets any of time you want say 3.00 P.M or 12.00 P.M. play that particular file. OR B - In onAppStart , just see what is the time and calculate the difference from time you want. Say you load your application or client connects at 9.00 A.M. , basically there would be code which calculates difference between 9.00 A.M. and 12.00 P.M. - get that differnce and set up a call to function to play correpsoding "lunch video" after that calculated time using setInterval.

    In second(II) case - Just use the date/time functions for first client connecting, and set up call like how i explained above in I-B case.

    I would suggest , please let me know exactly what is your use case in clear terms , it would help me to give you precise answer - like whether you want live or VOD , whether you want shceduling per day basis or continous, whether you want an interactivity or not.