« Back to Product

Documentation

WAC_AddFile

 boolean WAC_AddFile (int $InstanceID, string $Filename) 

Parameters

InstanceID

ID of the controlled media player

Filename

Path to the file to be played

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Adds a file to the internal playlist of the Media Player with ID InstanceID.

It does not check whether the file already exists. The same file can appear several times in the playlist.

To start playing, you must call WAC_Play.

Example

//Please note the slashes in the path.
//The exact meaning you can read in the PHP manual:
//http://de.php.net/manual/de/language.types.string.php
WAC_AddFile(12345, "D:/MP3s/favoritesong.mp3");
Any questions?