Documentation

ControllerStateInterface

Representation of the current state of a controller.

Table of Contents

Methods

getCrossfade()  : bool
Check if crossfade is currently active.
getPosition()  : TimeInterface
Get the position of the currently active track.
getRepeat()  : bool
Check if repeat is currently active.
getShuffle()  : bool
Check if shuffle is currently active.
getSpeakers()  : array<string, int>
Each speaker's UUID and its volume.
getState()  : PlayState
Get the playing mode of the controller.
getStream()  : Stream|null
Get the stream this controller is using.
getTrack()  : int
Get the number of the active track in the queue
getTracks()  : array<string|int, TrackInterface>
Get the tracks that are in the queue.

Methods

getSpeakers()

Each speaker's UUID and its volume.

public getSpeakers() : array<string, int>
Return values
array<string, int>

getTrack()

Get the number of the active track in the queue

public getTrack() : int
Return values
int

The zero-based number of the track in the queue

On this page

Search results