Changeset 1479:35d67ead94bf
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1441
|
r1479
|
|
| 127 | 127 | * webradio : _int_ id of the current webradio list |
| 128 | 128 | * webradiolength : _int_ number of recorded webradio |
| | 129 | * webradiosource : _str_ current source for webradio streams |
| | 130 | * webradiosourcecat : _str_ current categorie for webradio |
| 129 | 131 | * queue : _int_ id of the current queue |
| 130 | 132 | * queuelength : _int_ length of the current queue |
| … |
… |
|
| 140 | 142 | * volume : `[0-100]` current volume value |
| 141 | 143 | * 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 |
| 144 | 145 | * time : _int_:_int_ position:length of the current media file |
| 145 | 146 | * 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 |
| 154 | 151 | |
| 155 | 152 | Arguments : |
| … |
… |
|
| 179 | 176 | ==== `setOption` ==== |
| 180 | 177 | |
| 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) |
| | 178 | Set player options "name" to "value" for mode "source", Available options are : |
| | 179 | * playorder (inorder, onemedia, random or random-weighted) |
| | 180 | * repeat (0 or 1) |
| 185 | 181 | |
| 186 | 182 | Arguments : |
| … |
… |
|
| 207 | 203 | ==== `setRating` ==== |
| 208 | 204 | |
| 209 | | Set rating of media file with ids equal to media_id |
| 210 | | for library 'type' |
| | 205 | Set rating of media file with ids equal to media_id for library 'type' |
| 211 | 206 | |
| 212 | 207 | Arguments : |
| … |
… |
|
| 222 | 217 | |
| 223 | 218 | Change 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) |
| 225 | 221 | * video : to manage and wath video file |
| 226 | 222 | * dvd : to wath dvd |
| … |
… |
|
| 238 | 234 | For each available source, shows if it is activated or not. |
| 239 | 235 | 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) |
| 247 | 240 | * dvd : 0 or 1 (media backend has to be able to read dvd) |
| 248 | 241 | |
| … |
… |
|
| 260 | 253 | ==== `player.setPlayerOption` ==== |
| 261 | 254 | |
| 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) |
| | 255 | Set 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) |
| 276 | 267 | |
| 277 | 268 | Arguments : |
| … |
… |
|
| 353 | 344 | ==== `player.seek` ==== |
| 354 | 345 | |
| 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 |
| | 346 | Seeks to the position "pos" (in seconds) of the current media set relative argument to true to set new pos in relative way |
| 357 | 347 | |
| 358 | 348 | Arguments : |
| … |
… |
|
| 393 | 383 | ==== `audiolib.taglist` ==== |
| 394 | 384 | |
| 395 | | List all the possible values for a tag according to the optional |
| 396 | | filter argument. |
| | 385 | List all the possible values for a tag according to the optional filter argument. |
| 397 | 386 | |
| 398 | 387 | Arguments : |
| … |
… |
|
| 407 | 396 | |
| 408 | 397 | Update 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. |
| 411 | 399 | |
| 412 | 400 | Arguments : |
| … |
… |
|
| 447 | 435 | |
| 448 | 436 | Update 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. |
| 451 | 438 | |
| 452 | 439 | Arguments : |
| … |
… |
|
| 486 | 473 | ==== `playlist.addPath` ==== |
| 487 | 474 | |
| 488 | | Load files or directories passed as arguments ("paths") |
| 489 | | at the position "pos" in the current playlist. |
| | 475 | Load files or directories passed as arguments ("paths") at the position "pos" in the current playlist. |
| 490 | 476 | |
| 491 | 477 | Arguments : |
| … |
… |
|
| 533 | 519 | ==== `playlist.addIds` ==== |
| 534 | 520 | |
| 535 | | Load files with id passed as arguments ("ids") |
| 536 | | at the position "pos" in the current playlist. |
| | 521 | Load files with id passed as arguments ("ids") at the position "pos" in the current playlist. |
| 537 | 522 | |
| 538 | 523 | Arguments : |
| … |
… |
|
| 546 | 531 | ==== `playlist.remove` ==== |
| 547 | 532 | |
| 548 | | Remove songs with ids passed as argument ("ids"), |
| 549 | | from the current playlist |
| | 533 | Remove songs with ids passed as argument ("ids") from the current playlist |
| 550 | 534 | |
| 551 | 535 | Arguments : |
| … |
… |
|
| 610 | 594 | |
| 611 | 595 | Return 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 |
| 614 | 597 | * value : if 'playlist' is selected, return used playlist id |
| 615 | 598 | |
| … |
… |
|
| 755 | 738 | === `Webradio Mode Commands` === |
| 756 | 739 | |
| 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 | |
| | 742 | Return list of categories for webradio source 'source_name' |
| | 743 | |
| | 744 | Arguments : |
| | 745 | * {{{source_name}}} (Mandatory) : string |
| | 746 | |
| | 747 | Expected return value : ''`['list']`'' |
| | 748 | |
| | 749 | |
| | 750 | |
| | 751 | ==== `webradio.localAdd` ==== |
| | 752 | |
| | 753 | Add 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). |
| 762 | 754 | |
| 763 | 755 | Arguments : |
| 764 | 756 | * {{{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 | |
| | 759 | Expected return value : ''`['ack']`'' |
| | 760 | |
| | 761 | |
| | 762 | |
| | 763 | ==== `webradio.localRemove` ==== |
| | 764 | |
| | 765 | Remove webradios with id in "ids" from the 'local' source. |
| 785 | 766 | |
| 786 | 767 | Arguments : |
| 787 | 768 | * {{{ids}}} (Mandatory) : int-list |
| | 769 | |
| | 770 | Expected return value : ''`['ack']`'' |
| | 771 | |
| | 772 | |
| | 773 | |
| | 774 | ==== `webradio.localClear` ==== |
| | 775 | |
| | 776 | Remove all recorded webradios from the 'local' source. |
| | 777 | |
| | 778 | Arguments : |
| | 779 | * ''This command does not accept any argument.'' |
| 788 | 780 | |
| 789 | 781 | Expected return value : ''`['ack']`'' |
| … |
… |
|
| 803 | 795 | |
| 804 | 796 | |
| | 797 | ==== `webradio.setSourceCategorie` ==== |
| | 798 | |
| | 799 | Set categorie to 'categorie' for current source |
| | 800 | |
| | 801 | Arguments : |
| | 802 | * {{{categorie}}} (Mandatory) : string |
| | 803 | |
| | 804 | Expected return value : ''`['ack']`'' |
| | 805 | |
| | 806 | |
| | 807 | |
| | 808 | ==== `webradio.getAvailableSources` ==== |
| | 809 | |
| | 810 | Return list of available sources for webradio mode as source_name: has_categories |
| | 811 | |
| | 812 | Arguments : |
| | 813 | * ''This command does not accept any argument.'' |
| | 814 | |
| | 815 | Expected return value : ''`['dict']`'' |
| | 816 | |
| | 817 | |
| | 818 | |
| | 819 | ==== `webradio.setSource` ==== |
| | 820 | |
| | 821 | Set current source to 'source_name' |
| | 822 | |
| | 823 | Arguments : |
| | 824 | * {{{source_name}}} (Mandatory) : string |
| | 825 | |
| | 826 | Expected return value : ''`['ack']`'' |
| | 827 | |
| | 828 | |
| | 829 | |
| 805 | 830 | |
| 806 | 831 | |
| … |
… |
|
| 847 | 872 | ==== `queue.addIds` ==== |
| 848 | 873 | |
| 849 | | Load files with id passed as arguments ("ids") |
| 850 | | at the position "pos" in the queue. |
| | 874 | Load files with id passed as arguments ("ids") at the position "pos" in the queue. |
| 851 | 875 | |
| 852 | 876 | Arguments : |
| … |
… |
|
| 883 | 907 | ==== `queue.addPath` ==== |
| 884 | 908 | |
| 885 | | Load files or directories passed as arguments ("paths") |
| 886 | | at the position "pos" in the queue. |
| | 909 | Load files or directories passed as arguments ("paths") at the position "pos" in the queue. |
| 887 | 910 | |
| 888 | 911 | Arguments : |
| … |
… |
|
| 896 | 919 | ==== `queue.remove` ==== |
| 897 | 920 | |
| 898 | | Remove songs with ids passed as argument ("ids"), |
| 899 | | from the queue |
| | 921 | Remove songs with ids passed as argument ("ids") from the queue |
| 900 | 922 | |
| 901 | 923 | Arguments : |
| … |
… |
|
| 937 | 959 | ==== `queue.addIds` ==== |
| 938 | 960 | |
| 939 | | Load files with id passed as arguments ("ids") |
| 940 | | at the position "pos" in the queue. |
| | 961 | Load files with id passed as arguments ("ids") at the position "pos" in the queue. |
| 941 | 962 | |
| 942 | 963 | Arguments : |
| … |
… |
|
| 973 | 994 | ==== `queue.addPath` ==== |
| 974 | 995 | |
| 975 | | Load files or directories passed as arguments ("paths") |
| 976 | | at the position "pos" in the queue. |
| | 996 | Load files or directories passed as arguments ("paths") at the position "pos" in the queue. |
| 977 | 997 | |
| 978 | 998 | Arguments : |
| … |
… |
|
| 986 | 1006 | ==== `queue.remove` ==== |
| 987 | 1007 | |
| 988 | | Remove songs with ids passed as argument ("ids"), |
| 989 | | from the queue |
| | 1008 | Remove songs with ids passed as argument ("ids") from the queue |
| 990 | 1009 | |
| 991 | 1010 | Arguments : |
| … |
… |
|
| 1029 | 1048 | |
| 1030 | 1049 | Create 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 |
| 1035 | 1053 | |
| 1036 | 1054 | Arguments : |
| … |
… |
|
| 1055 | 1073 | ==== `recpls.staticAdd` ==== |
| 1056 | 1074 | |
| 1057 | | Add songs in a recorded static playlist. |
| 1058 | | Argument 'type' has to be 'path' (default) or 'id' |
| | 1075 | Add songs in a recorded static playlist. Argument 'type' has to be 'path' (default) or 'id' |
| 1059 | 1076 | |
| 1060 | 1077 | Arguments : |
| … |
… |
|
| 1106 | 1123 | |
| 1107 | 1124 | Get 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) |
| 1116 | 1130 | |
| 1117 | 1131 | Arguments : |
| … |
… |
|
| 1190 | 1204 | ==== `web.buildSourceRDF` ==== |
| 1191 | 1205 | |
| 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) |
| 1194 | 1207 | |
| 1195 | 1208 | Arguments : |
| … |
… |
|
| 1221 | 1234 | ==== `signal.setSubscription` ==== |
| 1222 | 1235 | |
| 1223 | | Set subscribtion to "signal" signal notifications to "value" |
| 1224 | | which should be 0 or 1. |
| | 1236 | Set subscribtion to "signal" signal notifications to "value" which should be 0 or 1. |
| 1225 | 1237 | |
| 1226 | 1238 | Arguments : |