MPLATFORMLib Namespace > MItemClass Class : PlaylistPosGet Method |
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 )
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;