Changeset 1479:35d67ead94bf

Show
Ignore:
Timestamp:
11/12/09 23:20:37 (4 months ago)
Author:
Mickael Royer <mickael.royer@…>
Branch:
default
convert_revision:
a1af50176df93e47f1c2a34262740dae9766062a
Message:

[docs] update protocol documentation

Ignore-this: 98e1a3e25be9e665e4ae70b3a54d9984

darcs-hash:20091112222037-b0006-c55e9d34768e9a38d27c0e23163dfd284dd125f0.gz

committer: Mickael Royer <mickael.royer@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/deejayd_rpc_protocol

    r1441 r1479  
    127127  * webradio : _int_ id of the current webradio list 
    128128  * webradiolength : _int_ number of recorded webradio 
     129  * webradiosource : _str_ current source for webradio streams 
     130  * webradiosourcecat : _str_ current categorie for webradio 
    129131  * queue : _int_ id of the current queue 
    130132  * queuelength : _int_ length of the current queue 
     
    140142  * volume : `[0-100]` current volume value 
    141143  * state : [play-pause-stop] the current state of the player 
    142   * current : _int_:_int_:_str_ current media pos : current media file id : 
    143                                 playing source name 
     144  * current : _int_:_int_:_str_ current media pos : current media file id : playing source name 
    144145  * time : _int_:_int_ position:length of the current media file 
    145146  * mode : [playlist-webradio-video] the current mode 
    146   * audio_updating_db : _int_ show when a audio library update 
    147                         is in progress 
    148   * audio_updating_error : _string_ error message that apppears when the 
    149                            audio library update has failed 
    150   * video_updating_db : _int_ show when a video library update 
    151                         is in progress 
    152   * video_updating_error : _string_ error message that apppears when the 
    153                            video library update has failed 
     147  * audio_updating_db : _int_ show when a audio library update is in progress 
     148  * audio_updating_error : _string_ error message that apppears when the audio library update has failed 
     149  * video_updating_db : _int_ show when a video library update is in progress 
     150  * video_updating_error : _string_ error message that apppears when the video library update has failed 
    154151 
    155152Arguments : 
     
    179176==== `setOption` ==== 
    180177 
    181 Set player options "name" to "value" for mode "source", 
    182            Available options are : 
    183            * playorder (inorder, onemedia, random or random-weighted) 
    184            * repeat (0 or 1)  
     178Set player options "name" to "value" for mode "source", Available options are : 
     179  * playorder (inorder, onemedia, random or random-weighted) 
     180  * repeat (0 or 1) 
    185181 
    186182Arguments : 
     
    207203==== `setRating` ==== 
    208204 
    209 Set rating of media file with ids equal to media_id 
    210         for library 'type'  
     205Set rating of media file with ids equal to media_id for library 'type'  
    211206 
    212207Arguments : 
     
    222217 
    223218Change the player mode. Possible values are : 
    224   * playlist : to manage and listen songs 
     219  * playlist : to manage and listen songs in playlist 
     220  * panel : to manage and listen songs in panel mode (like itunes) 
    225221  * video : to manage and wath video file 
    226222  * dvd : to wath dvd 
     
    238234For each available source, shows if it is activated or not. 
    239235   The answer consists in : 
    240   * playlist : 0 or 1 (actually always 1 because it does not need optionnal 
    241                dependencies) 
    242   * queue : 0 or 1 (actually always 1 because it does not need optionnal 
    243                dependencies) 
    244   * webradio : 0 or 1 (needs gst-plugins-gnomevfs to be activated) 
    245   * video : 0 or 1 (needs video dependencies, X display and needs to be 
    246             activated in configuration) 
     236  * playlist : 0 or 1 
     237  * panel : 0 or 1 
     238  * webradio : 0 or 1 (media backend has to be abble to read url streams) 
     239  * video : 0 or 1 (needs video dependencies, X display and needs to be activated in configuration) 
    247240  * dvd : 0 or 1 (media backend has to be able to read dvd) 
    248241 
     
    260253==== `player.setPlayerOption` ==== 
    261254 
    262 Set player option for the current media 
    263        Possible options are : 
    264          * zoom : set zoom (video only), min=-85, max=400 
    265          * audio_lang : select audio channel (video only) 
    266          * sub_lang : select subtitle channel (video only) 
    267          * av_offset : set audio/video offset (video only) 
    268          * sub_offset : set subtitle/video offset (video only) 
    269          * aspect_ratio : set video aspect ratio (video only) 
    270            available value are : 
    271                * auto 
    272                * 1:1 
    273                * 16:9 
    274                * 4:3 
    275                * 2.11:1 (for DVB) 
     255Set player option for the current media. Possible options are : 
     256  * zoom : set zoom (video only), min=-85, max=400 
     257  * audio_lang : select audio channel (video only) 
     258  * sub_lang : select subtitle channel (video only) 
     259  * av_offset : set audio/video offset (video only) 
     260  * sub_offset : set subtitle/video offset (video only) 
     261  * aspect_ratio : set video aspect ratio (video only), available values are : 
     262    * auto 
     263    * 1:1 
     264    * 16:9 
     265    * 4:3 
     266    * 2.11:1 (for DVB) 
    276267 
    277268Arguments : 
     
    353344==== `player.seek` ==== 
    354345 
    355 Seeks to the position "pos" (in seconds) of the current media 
    356            set relative argument to true to set new pos in relative way 
     346Seeks to the position "pos" (in seconds) of the current media set relative argument to true to set new pos in relative way 
    357347 
    358348Arguments : 
     
    393383==== `audiolib.taglist` ==== 
    394384 
    395 List all the possible values for a tag according to the optional 
    396         filter argument. 
     385List all the possible values for a tag according to the optional filter argument. 
    397386 
    398387Arguments : 
     
    407396 
    408397Update the library. 
    409   * 'type'_updating_db : the id of this task. 
    410     It appears in the status until the update are completed. 
     398  * 'type'_updating_db : the id of this task. It appears in the status until the update are completed. 
    411399 
    412400Arguments : 
     
    447435 
    448436Update the library. 
    449   * 'type'_updating_db : the id of this task. 
    450     It appears in the status until the update are completed. 
     437  * 'type'_updating_db : the id of this task. It appears in the status until the update are completed. 
    451438 
    452439Arguments : 
     
    486473==== `playlist.addPath` ==== 
    487474 
    488 Load files or directories passed as arguments ("paths") 
    489         at the position "pos" in the current playlist. 
     475Load files or directories passed as arguments ("paths") at the position "pos" in the current playlist. 
    490476 
    491477Arguments : 
     
    533519==== `playlist.addIds` ==== 
    534520 
    535 Load files with id passed as arguments ("ids") 
    536         at the position "pos" in the current playlist. 
     521Load files with id passed as arguments ("ids") at the position "pos" in the current playlist. 
    537522 
    538523Arguments : 
     
    546531==== `playlist.remove` ==== 
    547532 
    548 Remove songs with ids passed as argument ("ids"), 
    549            from the current playlist 
     533Remove songs with ids passed as argument ("ids") from the current playlist 
    550534 
    551535Arguments : 
     
    610594 
    611595Return active list in panel mode 
    612          * type : 'playlist' if playlist is choosen as active medialist 
    613                   'panel' if panel navigation is active 
     596         * type : 'playlist' if playlist is choosen as active medialist 'panel' if panel navigation is active 
    614597         * value : if 'playlist' is selected, return used playlist id 
    615598 
     
    755738=== `Webradio Mode Commands` === 
    756739 
    757 ==== `webradio.add` ==== 
    758  
    759 Add a webradio. Its name is "name" and the url of the webradio is 
    760         "url". You can pass a playlist for "url" argument (.pls and .m3u format 
    761         are supported). 
     740==== `webradio.getSourceCategories` ==== 
     741 
     742Return list of categories for webradio source 'source_name' 
     743 
     744Arguments : 
     745  * {{{source_name}}} (Mandatory) : string 
     746 
     747Expected return value : ''`['list']`'' 
     748 
     749 
     750 
     751==== `webradio.localAdd` ==== 
     752 
     753Add a webradio in 'local' source. Its name is "name" and the url of the webradio is "url". You can pass a playlist for "url" argument (.pls and .m3u format are supported). 
    762754 
    763755Arguments : 
    764756  * {{{name}}} (Mandatory) : string 
    765   * {{{url}}} (Mandatory) : string 
    766  
    767 Expected return value : ''`['ack']`'' 
    768  
    769  
    770  
    771 ==== `webradio.clear` ==== 
    772  
    773 Remove all recorded webradios. 
    774  
    775 Arguments : 
    776   * ''This command does not accept any argument.'' 
    777  
    778 Expected return value : ''`['ack']`'' 
    779  
    780  
    781  
    782 ==== `webradio.remove` ==== 
    783  
    784 Remove webradios with id in "ids". 
     757  * {{{url}}} (Mandatory) : list 
     758 
     759Expected return value : ''`['ack']`'' 
     760 
     761 
     762 
     763==== `webradio.localRemove` ==== 
     764 
     765Remove webradios with id in "ids" from the 'local' source. 
    785766 
    786767Arguments : 
    787768  * {{{ids}}} (Mandatory) : int-list 
     769 
     770Expected return value : ''`['ack']`'' 
     771 
     772 
     773 
     774==== `webradio.localClear` ==== 
     775 
     776Remove all recorded webradios from the 'local' source. 
     777 
     778Arguments : 
     779  * ''This command does not accept any argument.'' 
    788780 
    789781Expected return value : ''`['ack']`'' 
     
    803795 
    804796 
     797==== `webradio.setSourceCategorie` ==== 
     798 
     799Set categorie to 'categorie' for current source 
     800 
     801Arguments : 
     802  * {{{categorie}}} (Mandatory) : string 
     803 
     804Expected return value : ''`['ack']`'' 
     805 
     806 
     807 
     808==== `webradio.getAvailableSources` ==== 
     809 
     810Return list of available sources for webradio mode as source_name: has_categories 
     811 
     812Arguments : 
     813  * ''This command does not accept any argument.'' 
     814 
     815Expected return value : ''`['dict']`'' 
     816 
     817 
     818 
     819==== `webradio.setSource` ==== 
     820 
     821Set current source to 'source_name' 
     822 
     823Arguments : 
     824  * {{{source_name}}} (Mandatory) : string 
     825 
     826Expected return value : ''`['ack']`'' 
     827 
     828 
     829 
    805830 
    806831 
     
    847872==== `queue.addIds` ==== 
    848873 
    849 Load files with id passed as arguments ("ids") 
    850         at the position "pos" in the queue. 
     874Load files with id passed as arguments ("ids") at the position "pos" in the queue. 
    851875 
    852876Arguments : 
     
    883907==== `queue.addPath` ==== 
    884908 
    885 Load files or directories passed as arguments ("paths") 
    886         at the position "pos" in the queue. 
     909Load files or directories passed as arguments ("paths") at the position "pos" in the queue. 
    887910 
    888911Arguments : 
     
    896919==== `queue.remove` ==== 
    897920 
    898 Remove songs with ids passed as argument ("ids"), 
    899            from the queue 
     921Remove songs with ids passed as argument ("ids") from the queue 
    900922 
    901923Arguments : 
     
    937959==== `queue.addIds` ==== 
    938960 
    939 Load files with id passed as arguments ("ids") 
    940         at the position "pos" in the queue. 
     961Load files with id passed as arguments ("ids") at the position "pos" in the queue. 
    941962 
    942963Arguments : 
     
    973994==== `queue.addPath` ==== 
    974995 
    975 Load files or directories passed as arguments ("paths") 
    976         at the position "pos" in the queue. 
     996Load files or directories passed as arguments ("paths") at the position "pos" in the queue. 
    977997 
    978998Arguments : 
     
    9861006==== `queue.remove` ==== 
    9871007 
    988 Remove songs with ids passed as argument ("ids"), 
    989            from the queue 
     1008Remove songs with ids passed as argument ("ids") from the queue 
    9901009 
    9911010Arguments : 
     
    10291048 
    10301049Create recorded playlist. The answer consist on 
    1031           * pl_id : id of the created playlist 
    1032           * name : name of the created playlist 
    1033           * type : type of the created playlist 
    1034            
     1050  * pl_id : id of the created playlist 
     1051  * name : name of the created playlist 
     1052  * type : type of the created playlist 
    10351053 
    10361054Arguments : 
     
    10551073==== `recpls.staticAdd` ==== 
    10561074 
    1057 Add songs in a recorded static playlist. 
    1058            Argument 'type' has to be 'path' (default) or 'id' 
     1075Add songs in a recorded static playlist. Argument 'type' has to be 'path' (default) or 'id' 
    10591076 
    10601077Arguments : 
     
    11061123 
    11071124Get properties of a magic playlist 
    1108           * use-or-filter: if equal to 1, use "Or" filter 
    1109             instead of "And" (0 or 1) 
    1110           * use-limit: limit or not number of songs in the playlist (0 or 1) 
    1111           * limit-value: number of songs for this playlist (integer) 
    1112           * limit-sort-value: when limit is active sort playlist with this tag 
    1113           * limit-sort-direction: sort direction for limit 
    1114             (ascending or descending) 
    1115            
     1125  * use-or-filter: if equal to 1, use "Or" filter instead of "And" (0 or 1) 
     1126  * use-limit: limit or not number of songs in the playlist (0 or 1) 
     1127  * limit-value: number of songs for this playlist (integer) 
     1128  * limit-sort-value: when limit is active sort playlist with this tag 
     1129  * limit-sort-direction: sort direction for limit (ascending or descending) 
    11161130 
    11171131Arguments : 
     
    11901204==== `web.buildSourceRDF` ==== 
    11911205 
    1192  Build rdf file with current medialist of the specified mode 
    1193             return dict with specific informations (like a description) 
     1206 Build rdf file with current medialist of the specified mode return dict with specific informations (like a description) 
    11941207 
    11951208Arguments : 
     
    12211234==== `signal.setSubscription` ==== 
    12221235 
    1223 Set subscribtion to "signal" signal notifications to "value" 
    1224         which should be 0 or 1. 
     1236Set subscribtion to "signal" signal notifications to "value" which should be 0 or 1. 
    12251237 
    12261238Arguments :