PlaylistPosGet Method (MItemClass)
current item index
next item index
time position in seconds related to currently played item
time position in seconds related to the whole playlist
Gets the current playlist position (current item index, current item time and current playlist time). The position is calculated from item in-point with calculation of all breaks.
Syntax
Public Overridable Sub PlaylistPosGet( _
   ByRef _pnIndex As Integer, _
   ByRef _pnNextIndex As Integer, _
   ByRef _pdblFileTime As Double, _
   ByRef _pdblListTime As Double _
) 
public virtual void PlaylistPosGet( 
   out int _pnIndex,
   out int _pnNextIndex,
   out double _pdblFileTime,
   out double _pdblListTime
)
public procedure PlaylistPosGet( 
   Out  _pnIndex: Integer;
   Out  _pnNextIndex: Integer;
   Out  _pdblFileTime: Double;
   Out  _pdblListTime: Double
); virtual; 
public: virtual void PlaylistPosGet( 
   [PARAMFLAG::Out] int _pnIndex,
   [PARAMFLAG::Out] int _pnNextIndex,
   [PARAMFLAG::Out] double _pdblFileTime,
   [PARAMFLAG::Out] double _pdblListTime
) 

Parameters

_pnIndex
current item index
_pnNextIndex
next item index
_pdblFileTime
time position in seconds related to currently played item
_pdblListTime
time position in seconds related to the whole playlist
Example

Here is example of how to add command to the playlist item:

Dim myIndex As Integer
Dim myNextIndex As Integer
Dim myItem As MItem
Dim strPath As String
Dim dblFileDuration As Double
Dim dblFilePos As Double
Dim dblListPos As Double
myPlaylist.PlaylistPosGet(myIndex, myNextIndex, dblFilePos, dblListPos)
myPlaylist.PlaylistGetByOffset(dblListPos, nIndex, dblFileDuration, strPath, myItem)
Dim myTargetItem As MItem
myPlaylist.PlaylistCommandAdd("mute", "true", myItem, myIndex, myTargetItem)
int myIndex;
int myNextIndex;
MItem myItem;
string strPath;
double dblFileDuration;
double dblFilePos;
double dblListPos;
myPlaylist.PlaylistPosGet(out myIndex, out myNextIndex, out dblFilePos, out dblListPos);
myPlaylist.PlaylistGetByOffset(dblListPos, out nIndex, out dblFileDuration, out strPath, out myItem);
MItem myTargetItem;
myPlaylist.PlaylistCommandAdd("mute", "true", myItem, ref myIndex, out myTargetItem);
var
myIndex, myNextIndex: integer;
myItem, myTargetItem: MItem;
strPath: widestring;
dblFileDuration, dblListPos, dblFilePos: double;
begin
myPlaylist.PlaylistPosGet(myIndex, myNextIndex, dblFilePos, dblListPos);
myPlaylist.PlaylistGetByOffset(1, dblFileDuration, strPath, myItem);
myPlaylist.PlaylistCommandAdd('mute', 'true', myItem, myIndex, myTargetItem);
end;
See Also

Reference

MItemClass Class
MItemClass Members