Methods

PlaylistAdd

Syntax

Parameters

_pExternOrRef - reference to external object (for example, live source)_bsPath - path of the item_bsParam - additional parameters of element (“Live” to add live source, “Playlist” to add playlist). If you want to add a new playlist with any file then you should use PlaylistAdd( “my_file.avi”, “playlist”). If you add file, you can set file properties here (like in FileNameSet method), see MFile object: properties._pnIndex - place of element in playlist Possible values: 0 - insert new file to first position of playlist: [newfile] [first] ... [last] 1 - insert new file to second position of playlist: [first] [newfile] ... [last] etc. -1 - insetf new file to the end of playlist: [first] ... [last] [newfile] -2 - insert new file to second position from the end of playlist: [first] ... [newfile] [last] -3 - insert new file to third position from the end of playlist: [first] ... [newfile] [pre-last] [last] etc._ppPlaylistItem - output playlist item

PlaylistGetByIndex

Syntax

Parameters

_nIndex - playlist item index (use -1 for the current item, -2 for the current break or qued item and -3 for qued item only in case of breaks)_pdblFileOffset - file offset from the start_pbsPath - item path_ppPlaylistItem - playlist item MItem object

Syntax

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

PlaylistPosSet

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

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

PlaylistRemove

Removes the item from playlist.

Syntax

void PlaylistRemove(
MItem pFile
)

Parameters

PlaylistRemoveByIndex

Removes multiple items from the playlist.

Syntax

void PlaylistRemoveByIndex(
int _nIndex,
int _nExtraRemove
)

Parameters

_nIndex - index of item to start remove from_nExtraRemove - number of items to be removed Possible values: 0 - remove single item. positive value - number of items to be removed is calculated to the end of playlist. negative value -clear all playlist items

PlaylistReorder

Changes the playlist items order.

Syntax

void PlaylistReorder(
int _nIndex,
int _nIndexAdd
)

Parameters

_nIndex - index of item to be changed_nIndexAdd - index change number Possible values: positive value - position is changed in direction to end of playlist. negative value - position is changed in direction to beggining of playlist