How to schedule your videos with time windowing