GetPlayerStatus
Материал из MajorDoMo инфо
Описание
getPlayerStatus($host = 'localhost'); -- Summary of player status @param mixed $host Host (default 'localhost') name or ip of terminal @return
'id' => (int), //ID of currently playing track (in playlist). Integer. If unknown (playback stopped or playlist is empty) = -1. 'name' => (string), //Playback status. String: stopped/playing/paused/transporting/unknown 'file' => (string), //Current link for media in device. String. 'track_id' => (int)$track_id, //ID of currently playing track (in playlist). Integer. If unknown (playback stopped or playlist is empty) = -1. 'length' => (int)$length, //Track length in seconds. Integer. If unknown = 0. 'time' => (int)$time, //Current playback progress (in seconds). If unknown = 0. 'state' => (string)$state, //Playback status. String: stopped/playing/paused/unknown 'volume' => (int)$volume, // Volume level in percent. Integer. Some players may have values greater than 100. 'random' => (boolean)$random, // Random mode. Boolean. 'loop' => (boolean)$loop, // Loop mode. Boolean. 'repeat' => (boolean)$repeat, //Repeat mode. Boolean.