Copyright © 2001-2019 MultiMedia Soft

PlayListItemCuePointAdd method

Previous pageReturn to chapter overviewNext page

Remarks

 

Adds a new cue point to an item of the playlist: when the cue point is reached, the CuePointReached event is fired.

 

This method will return an error if the playlist has not been created with the PlayListCreateAutomation method or loaded with the PlayListLoad or PlayListLoadSync methods having the nMode parameter set to PLAYLIST_AUTOMATION_MODE.

 

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

For details about using Volume Automation refer to the How to manage Volume Automation tutorial.

For further details about cue points see the How to add Triggers and Cue Points to a player tutorial.

 

 

Syntax

 

[Visual Basic]

control.PlayListItemCuePointAdd (

nPlayer as Integer,

nItem as Integer,

strCuePointName as String,

nPositionUnit as enumVolumeAutomationPositionUnits,

fPosition as Single

) as enumErrorCodes


 

[C++]

short control.PlayListItemCuePointAdd (

short nPlayer,

short nItem,

LPCTSTR strCuePointName,

short nPositionUnit,

float fPosition

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nItem

Number representing the zero-based index of the item inside the playlist. The number of available items can be obtained using the PlayListGetCount method.

strCuePointName

String containing the unique name that will identify the cue point from now on.

If this name should be already assigned to an existing cue point, an error code would be returned

nPositionUnit

The unit used to define the position of the cue point through the fPosition parameter below.

Supported values are the following:

Mnemonic constant

Value

Meaning

VA_POS_UNIT_SECONDS

0

Position is expressed in seconds

VA_POS_UNIT_PERCENTAGE

1

Position is expressed in percentage

VA_POS_UNIT_MILLISECONDS

2

Position is expressed in milliseconds

fPosition

Number representing the cue point position expressed in nPositionUnit

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.