Playback control API

for skins.
Intro | PHP
APIs: playlist | Playback | Collection

* int biys_get_current_id(int playlist=0)
* int biys_get_current_index(int playlist=0)

* void biys_play_file(int playlist=0, int ID)
* void biys_play_next(int playlist=0)
* void biys_play_previous(int playlist=0)
* void biys_play(int playlist=0)
* void biys_pause(int playlist=0)

* double biys_get_pitch(int playlist=0)
* void biys_set_pitch(int playlist=0, hodouble pitch)
* double biys_get_position(int playlist=0)
* void biys_set_position(int playlist=0, double position)
* double biys_get_volume(int playlist=0)
* void biys_set_volume(int playlist=0, double volume)


int biys_get_current_id(int playlist=0)

Returns the ID of the entry currently being played, or -1 if the playlist is empty.

int biys_get_current_index(int playlist=0)

Returns the index of the entry currently being played, or -1 if the playlist is empty.

void biys_play_file(int ID, int playlist)

Starts playing a particular entry in the playlist.

void biys_play_next(int playlist=0)

Skips to the next entry in the playlist.

void biys_play_previous(int playlist=0)

Skips to the previous entry in the playlist.

void biys_play(int playlist=0)

Starts playback. Equivalent to setting the pitch to 1.0.

void biys_pause(int playlist=0)

Pauses playback. Equivalent to setting the pitch to 0.0.

double biys_get_pitch(int playlist=0)

Returns the current playback pitch:

void biys_set_pitch(double pitch, int playlist=0)

Sets the playback pitch.

double biys_get_position(int playlist=0)

Returns the playback position in the track between 0.0 and 1.0.

void biys_set_position(double position, int playlist=0)

Sets the playback position in the track. Pass in a value between 0.0 and 1.0.

double biys_get_volume(int playlist=0)

Returns the volume: 0..1.

void biys_set_volume(double volume, int playlist=0)

Sets the volume: 0..1

next: browsing the collection