« Back to Product

Documentation

WAC_GetPlaylistLength

 int WAC_GetPlaylistLength (int $InstanceID) 

Parameters

InstanceID

ID of the controlled media player

Returns

Number of tracks, which are registered in the playlist.

Description

Returns the length of the internal playlist of the Media Player with ID InstanceID.

Example

$len = WAC_GetPlaylistLength(12345);
if($len > 0)
    WAC_Play(12345);
Any questions?