SchedulerAdd Method (MPlaylistClass)
schedule time
reference to external object (for example, live source)
path to item
additional parameters of element (“Live” to add live source, “Playlist” to add playlist)
output scheduled item
Adds a new scheduled item (file, playlist or live source) at specified time. Not implemented yet.
Syntax
Public Overridable Sub SchedulerAdd( _
   ByRef _pTime As M_DATETIME, _
   ByVal _pExternOrRef As Object, _
   ByVal _bsPath As String, _
   ByVal _bsParam As String, _
   ByRef _ppTask As MItem _
) 
public virtual void SchedulerAdd( 
   ref M_DATETIME _pTime,
   object _pExternOrRef,
   string _bsPath,
   string _bsParam,
   out MItem _ppTask
)
public procedure SchedulerAdd( 
   var  _pTime: M_DATETIME;
    _pExternOrRef: TObject;
    _bsPath: String;
    _bsParam: String;
   Out  _ppTask: MItem
); virtual; 
public: virtual void SchedulerAdd( 
   ref M_DATETIME _pTime,
   IUnknown* _pExternOrRef,
   BSTR* _bsPath,
   BSTR* _bsParam,
   [PARAMFLAG::Out] MItem* _ppTask
) 

Parameters

_pTime
schedule time
_pExternOrRef
reference to external object (for example, live source)
_bsPath
path to item
_bsParam
additional parameters of element (“Live” to add live source, “Playlist” to add playlist)
_ppTask
output scheduled item
Example
Dim mTimeStart As M_DATETIME
Dim mTimeStop As M_DATETIME
Dim eStartType As eMStartType
Dim myTask As MItem
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType)
Dim strPath As String = "d:\clips\SampleClip1.wmv"
myPlaylist.SchedulerAdd(mTimeStop, Nothing, strPath, "", myTask)
M_DATETIME mTimeStart;
M_DATETIME mTimeStop;
eMStartType eStartType;
MItem myTask;
pItem.ItemTimesGet(out mTimeStart, out mTimeStop, out eStartType);
string strPath = @"d:\clips\SampleClip1.wmv";
myPlaylist.SchedulerAdd(mTimeStop, null, strPath, "", out myTask); 
var
myPlaylist: MPlaylist;
mTimeStart, mTimeStop: M_DATETIME;
eStartType: eMStartType;
myTask: MItem;
myPath: string;
myScheduler: IMScheduler;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist; 
myPath:= 'd:\clips\SampleClip1.wmv';
myPlaylist.PlaylistAdd(nil, myPath, '', -1, pItem); 
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType);
myScheduler := myPlaylist as IMScheduler;
myScheduler.SchedulerAdd(mTimeStop, nil, strPath, '', myTask);
end;
See Also

Reference

MPlaylistClass Class
MPlaylistClass Members