GetPlayerStatus: различия между версиями

Материал из MajorDoMo инфо
(Новая страница: «Category:Встроенные функции ==Описание== '''getPlayerStatus'''($host = 'localhost'); -- Summary of player status @param mixed $host H...»)
 
 
Строка 3: Строка 3:
'''getPlayerStatus'''($host = 'localhost'); -- Summary of player status
'''getPlayerStatus'''($host = 'localhost'); -- Summary of player status
@param mixed $host Host (default 'localhost') name or ip of terminal
@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.
@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
         'name'            => (string), //Playback status. String: stopped/playing/paused/transporting/unknown
         'file'            => (string), //Current link for media in device. String.
         'file'            => (string), //Current link for media in device. String.
Строка 14: Строка 15:
         'loop'            => (boolean)$loop, // Loop mode. Boolean.
         'loop'            => (boolean)$loop, // Loop mode. Boolean.
         'repeat'          => (boolean)$repeat, //Repeat mode. Boolean.
         'repeat'          => (boolean)$repeat, //Repeat mode. Boolean.
==Примеры запросов==
==Примеры запросов==


==Альтернативные названия функции (сленг)==
==Альтернативные названия функции (сленг)==

Текущая версия от 16:26, 12 декабря 2019

Описание

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.

Примеры запросов

Альтернативные названия функции (сленг)