PlaylistPosSet Method (IMPlaylist)
playlist item index
Possible values:
file or playlist time in seconds to set position to
preroll value in seconds. It will be passed from the beginning of file before position set.
Sets the current playlist position to the specified file and time. The position is calculated from item in-point with calculation of all breaks.
Syntax
Sub PlaylistPosSet( _
   ByVal _nIndex As Integer, _
   ByVal _dblFileOrListTime As Double, _
   ByVal _dblPreroll As Double _
) 
procedure PlaylistPosSet( 
    _nIndex: Integer;
    _dblFileOrListTime: Double;
    _dblPreroll: Double
); 

Parameters

_nIndex
playlist item index
Possible values:
  • 0, 1, 2 etc. - playlist item index to set position to.
  • -1 - set position related to the whole playlist.
_dblFileOrListTime
file or playlist time in seconds to set position to
_dblPreroll
preroll value in seconds. It will be passed from the beginning of file before position set.
Example
et position to 10th sec after In point of the first file
m_objPlaylist.PlaylistPosSet(0, 10, 0)
et position to 10th sec after In point of the fifth file
m_objPlaylist.PlaylistPosSet(5, 10, 0)
et position to 25th sec of playlist(number of file is calculated automatically according to file durations)
m_objPlaylist.PlaylistPosSet(-1, 25, 0)
//Set position to 10th sec after In point of the first file
m_objPlaylist.PlaylistPosSet(0, 10, 0);
//Set position to 10th sec after In point of the fifth file
m_objPlaylist.PlaylistPosSet(5, 10, 0);
//Set position to 25th sec of playlist(number of file is calculated automatically according to file durations)
m_objPlaylist.PlaylistPosSet(-1, 25, 0);
//Set position to 10th sec after In point of the first file
m_objPlaylist.PlaylistPosSet(0, 10, 0);
//Set position to 10th sec after In point of the fifth file
m_objPlaylist.PlaylistPosSet(5, 10, 0);
//Set position to 25th sec of playlist(number of file is calculated automatically according to file durations)
m_objPlaylist.PlaylistPosSet(-1, 25, 0);
See Also

Reference

IMPlaylist Interface
IMPlaylist Members