The Schedule Playlist Sample illustrates a scheduling feature. Here you can set start time for each playlist item and preview the result.
MPlaylist supports scheduling for playlist items, for commands and for separate files. There are two methods to make schedule.
Scheduling with ItemStartTimeSet method of playlist element
You can set a start time for any element in the playlist. It is necessary for automate broadcasting and for file fitting to broadcast.
Duration that is returned by demultiplexer can differ from the real one. For instance, clip duration is shown as 1 hour but the real clip duration can be "00:59:59" or "01:01:00". This issue can be a big problem if you want to schedule your playlist accurately.
It is quite easy to set the start time for your playlist item. Detailed information you can get here.
To set the behavior of playlist on border between playlist items you should set the “schedule_waitstart” property in MPlaylist object through IMProps interface.
Let the previous file ended at 10:59 and for next item you set specified start time that equals 11:00. .
If “schedule_waitstart” value is:
Example:
How to create playlist schedule for a day?
For the 1st element you should use ItemStartTimeSet( time, eMST_Specified) method. You can set in/out points, breaks etc. to other playlist items according to the broadcasting schedule. You can check the moments of beginning and ending of playlist element by using ItemTimesGet. For elements that require strong timing (for example, news blocks) you should use ItemStartTimeSet( eMST_Auto) It’s better to use eMST_Auto for reduce the chance of any mistakes in scheduling.