« Back to Product

Documentation

WAC_PlayFile

 boolean WAC_PlayFile (int $InstanceID, string $Filename) 

Parameters

InstanceID

ID of the controlled media player

Filename

Path to the file to play

Returns

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

Description

Plays a file with a Filename directly from the media player with the ID InstanceID. The command is only available for simplification. They can also be replaced by a sequence of WAC_ClearPlaylist, WAC_AddFile, WAC_Play.

Please refer to the supported file formats.
Currently supported formats: .wav, .mp3, *.wma (each without DRM)

Example

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