MPLATFORMLib Namespace > IMItem Interface : ItemTimesGet Method |
Sub ItemTimesGet( _ ByRef _pStartTime As M_DATETIME, _ ByRef _pStopTime As M_DATETIME, _ ByRef _peStartType As eMStartType _ )
void ItemTimesGet( out M_DATETIME _pStartTime, out M_DATETIME _pStopTime, out eMStartType _peStartType )
procedure ItemTimesGet( Out _pStartTime: M_DATETIME; Out _pStopTime: M_DATETIME; Out _peStartType: eMStartType );
void ItemTimesGet( [PARAMFLAG::Out] M_DATETIME _pStartTime, [PARAMFLAG::Out] M_DATETIME _pStopTime, [PARAMFLAG::Out] eMStartType _peStartType )
Here is example of how to set start time for playlist item:
Dim myItem As MItem Dim strPath As String Dim dblPos As Double myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem) et stop time as start time. Dim _myStart As M_DATATIME Dim _myStop As M_DATATIME Dim _myType As eMStartType pItem.ItemTimesGet(_myStart, _myStop, _myType) 'get time pItem.ItemStartTimeSet(_myStop, eMStartType.eMST_Off)
MItem myItem; string strPath; double dblPos; myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out myItem); //set stop time as start time. M_DATATIME _myStart; M_DATATIME _myStop; eMStartType _myType; myItem.ItemTimesGet(out _myStart, out _myStop, out _myType); //get time myItem.ItemStartTimeSet(ref _myStop, eMStartType.eMST_Off);
var myItem: MItem; strPath: widestring; dblPos: double; myStart, myStop: M_DATETIME; myType: eMStartType; begin myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem); myItem.ItemTimesGet(myStart, myStop, myType); myItem.ItemStartTimeSet(myStop, eMST_Off); end;