Copyright © 2005-2018 MultiMedia Soft

PlayListNextIndexGet method

Previous pageReturn to chapter overviewNext page



Obtains the index of the next item in playlist that will be executed after completing the current one. The index of the current item can be obtained through the PlayListCurrIndexGet method.

This method may be useful to understand which item will be executed after the current one when the playlist is executed in "shuffle" mode (see the PlayListSetShuffle method).

You may modify the next index of the item to be executed through the PlayListNextIndexSet method.


For further details about playlists management see the How to create and manage a playlist tutorial.





[Visual Basic]

Public Function PlayListNextIndexGet (

nPlayerIndex as Int16,

ByRef nIndex as Int16

) as enumErrorCodes



public enumErrorCodes PlayListNextIndexGet (

Int16 nPlayerIndex,

ref Int16 nIndex




public: enumErrorCodes PlayListNextIndexGet (

Int16 nPlayerIndex,

Int16 __gc *nIndex










Number representing the zero-based index of the player that owns the playlist


Reference that, on return from the method call, will contain the zero-based index of the next playlist item



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.