/usr/lib/perl5/Audio/XMMSClient.pod is in libaudio-xmmsclient-perl 0.8+dfsg-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 | =head1 NAME
Audio::XMMSClient - Interface to the xmms2 music player
=head1 SYNOPSIS
use Audio::XMMSClient;
my $conn = Audio::XMMSClient->new($client_name);
$conn->connect or die $c->get_last_error;
my $result = $c->playback_status;
$result->wait;
print $result->value;
=head1 DESCRIPTION
This module provides a perl interface to the xmms2 client library.
=head1 METHODS
=head2 new
=over 4
=item Arguments: $client_name?
=item Return Value: $connection
=back
my $conn = Audio::XMMSClient->new('foo');
Creates a new Audio::XMMSClient instance. If C<$client_name> is omitted it will
use the name of your application (see C<$0>/C<$PROGRAM_NAME> in L<perlvar>).
=head2 connect
=over 4
=item Arguments: $ipcpath?
=item Return Value: $success
=back
my $success = $conn->connect;
Tries to establish a connection to the xmms2 server. If C<$ipcpath> is omitted
it will fall back to C<$ENV{XMMS_PATH}> and, if that's unset as well, the
default ipcpath of libxmmsclient. If an error occurs a false value is returned
and a message describing the error can be obtained using L</get_last_error>.
=head2 disconnect_callback_set
=over 4
=item Arguments: \&func, $data?
=item Return Value: none
=back
$conn->disconnect_callback_set(sub { die 'got disconnected' });
Registers a function which will be called if the connection to the xmms2 server
gets abnormally terminated. C<\&func> will be called with either one or two
arguments. The first one will be a reference to the connection. C<$data>, if
passed, will be the second argument of the callback.
=head2 io_disconnect
=over 4
=item Arguments: none
=item Return Value: none
=back
$conn->io_disconnect;
Flags the connection as disconected. This is to be called when the mainloop
signals disconnection of the connection. This is optional, any call to
L</io_out_handle> or L</io_in_handle> will notice the disconnection and handle
it accordingly.
=head2 get_last_error
=over 4
=item Arguments: none
=item Return Value: $error_message
=back
my $message = $conn->get_last_error;
Returns a string that descibes the last error (if any).
=head2 plugin_list
=over 4
=item Arguments: $type?
=item Return Value: $result
=back
my $result = $conn->plugin_list;
Get a list of loaded plugins from the server. C<$type>, which may be used to
only get a list of plugins of a specific type, can be any of the following
strings:
=over 4
=item * output
=item * playlist
=item * effect
=item * xform
=item * all
=back
If C<$type> is omitted "all" is assumed.
=head2 main_stats
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->main_stats;
Get a list of statistics from the server.
=head2 quit
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->quit;
Tell the server to quit. This will terminate the server. If you only want to
disconnect just destroy all references to the connection instance.
=head2 broadcast_quit
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_quit;
Request the quit broadcast. Will be called when the server is terminating.
=head2 medialib_get_id
=over 4
=item Arguments: $url
=item Return Value: $result
=back
my $result = $conn->medialib_get_id('file:///home/user/music/artist/album/track.flac');
Search for a entry (URL) in the medialib db and return its ID number.
=head2 medialib_move_entry
=over 4
=item Arguments: $id, $url
=item Return Value: $result
my $result = $conn->medialib_move_entry(42, 'file:///new/path/to/file.flac');
Change the url property of an entry in the media library. Note that you need to
handle the actual file move yourself.
=back
=head2 medialib_remove_entry
=over 4
=item Arguments: $entry
=item Return Value: $result
=back
my $result = $conn->medialib_remove_entry(1337);
Remove a entry with a given ID from the medialib.
=head2 medialib_add_entry
=over 4
=item Arguments: $url
=item Return Value: $result
=back
my $result = $conn->medialib_add_entry;
Add a C<$url> to the medialib. If you want to add mutiple files you should call
L</medialib_path_import>.
=head2 medialib_add_entry_args
=over 4
=item Arguments: $url, @args?
=item Return Value: $result
=back
my $result = $conn->medialib_add_entry_args(
"file:///data/HVSC/C64Music/Hubbard_Rob/Commando.sid",
"subtune=2",
);
Add a C<$url> with arguments to the medialib.
=head2 medialib_add_entry_encoded
=over 4
=item Arguments: $url
=item Return Value: $result
=back
my $result = $conn->medialib_add_entry_encoded($url);
Same as L</medialib_add_entry>, except it expects an encoded C<$url>.
=head2 playlist
=over 4
=item Arguments: $playlist_name?
=item Return Value: $playlist
=back
my $playlist = $conn->playlist('jrock');
Returns an L<Audio::XMMSClient::Playlist> instance representing a playlist
specified by C<$playlist_name>. If no C<$playlist_name> is given "_active" will
be used.
=head2 medialib_path_import
=over 4
=item Arguments: $path
=item Return Value: $result
=back
my $result = $conn->medialib_path_import('file:///media/music/');
Import a all files recursivly from C<$path>. C<$path> must include the
protocol, i.e. file://.
=head2 medialib_path_import_encoded
=over 4
=item Arguments: $path
=item Return Value: $result
=back
my $result = $conn->medialib_path_import_encoded($path);
Same as L</medialib_path_import> except it expects C<$path> to be url encoded.
You probably want to use L</medialib_path_import> unless you want to add a path
that comes as a result from the daemon, such as from C</xform_media_browse>.
=head2 medialib_rehash
=over 4
=item Arguments: $id?
=item Return Value: $result
=back
my $result = $conn->medialib_rehash;
Rehash the medialib. This will check that data for entry C<$id> in the medialib
still is the same as in its data in files. If C<$id> is omitted or set to 0 the
full medialib will be rehashed.
=head2 medialib_get_info
=over 4
=item Arguments: $id
=item Return Value: $result
=back
my $result = $conn->medialib_get_info(9667);
Retrieve information about entry C<$id> from the medialib.
=head2 broadcast_medialib_entry_added
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_medialib_entry_added;
Request the medialib_entry_added broadcast. This will be called if a new entry
is added to the medialib serverside.
=head2 broadcast_medialib_entry_changed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_medialib_entry_changed;
Request the medialib_entry_changed broadcast. This will be called if a entry
changes on the serverside.
=head2 medialib_entry_property_set_int
=over 4
=item Arguments: $id, $key, $value
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_set_int(1337, 'leet_level', 42);
Associate an integer C<$value> with a property C<$key> for medialib entry
C<$id>. Uses default source which is C<client/E<lt>clientnameE<gt>>.
=head2 medialib_entry_property_set_int_with_source
=over 4
=item Arguments: $source, $id, $key, $valu
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_set_int_with_source(9667, 'client/generic', 'rating', 3);
Same as L</medialib_entry_property_set_int>, except it also allows to set the
C<$source> for the given property.
=head2 medialib_entry_property_set_str
=over 4
=item Arguments: $id, $key, $value
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_set_str(431, 'fingerprint', '13f3ad');
Same as L</medialib_entry_property_set_int>, except it sets a string C<$value>.
=head2 medialib_entry_property_set_str_with_source
=over 4
=item Arguments: $id, $source, $key, $value
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_set_str_with_source(542, 'client/generic', 'lyrics', <<'EOL');
Hey, Ho, Supergaul..
...
EOL
Same as L</medialib_entry_property_set_str>, except it also allows to set the
C<$source> for the given property.
=head2 medialib_entry_property_remove
=over 4
=item Arguments: $id, $key
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_remove(431, 'fingerprint');
Remove a custom field specified by C<$key> in the medialib associated with the
entry C<$id>.
=head2 medialib_entry_property_remove_with_source
=over 4
=item Arguments: $id, $source, $key
=item Return Value: $result
=back
my $result = $conn->medialib_entry_property_remove_with_source(542, 'client/generic', 'lyrics');
Like L</medialib_entry_property_remove>, but also allows to specify the
C<$source>.
=head2 coll_get
=over 4
=item Arguments: $name, $namespace
=item Return Value: $collection
=back
my $coll = $conn->coll_get('Funk', 'Collections');
Get the collection structure of the collection C<$name> saved on the server in
a given C<$namespace>.
=head2 coll_sync
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->coll_sync;
Synchronize collection data to the database.
=head2 coll_list
=over 4
=item Arguments: $namespace
=item Return Value: $result
=back
my $result = $conn->coll_list('Collections');
List all collections saved on the server in a given C<$namespace>.
=head2 coll_save
=over 4
=item Arguments: $coll, $name, $namespace
=item Return Value: $result
=back
my $result = $conn->coll_save('Funk', $collection, 'Collections');
Saves a C<$collection> on the server under a given C<$name>, in a given
C<$namespace>.
=head2 coll_remove
=over 4
=item Arguments: $name, $namespace
=item Return Value: $result
=back
my $result = $conn->coll_remove('Funk', 'Collections');
Remove a collection from the server.
=head2 coll_find
=over 4
=item Arguments: $mediaid, $namespace
=item Return Value: $result
=back
my $result = $conn->coll_find(542, 'Collections');
Find all collections in a given C<$namespace> which contain the medialib entry
with the given C<$mediaid>.
=head2 coll_rename
=over 4
=item Arguments: $from, $to, $namespace
=item Return Value: $result
=back
my $result = $conn->coll_rename('Funk', 'Funky Music', 'Collections');
Rename a collection within a C<$namespace>.
=head2 coll_query_ids
=over 4
=item Arguments: $collection, \%args
=item Arguments: $collection, \@order?, $limit_start?, $limit_len?
=item Return Value: $result
=back
my $result = $conn->coll_query_ids($collection, {
order => [qw/artist album/],
limit_start => 0,
limit_len => 10,
});
List the ids of all media matched by a given C<$collection>. The returned list
might be refined using the following parameters:
=over 4
=item * order
The list of properties to order by. C<undef> or an empty array reference to
disable.
=item * limit_start
The offset at which to start retrieving results. C<0> to disable.
=item * limit_len
The maximum number of entries to retrieve. C<0> to disable.
=back
The above parameters might be passed either positional or within a hash
reference.
=head2 coll_query_infos
=over 4
=item Arguments: $collection, \%args
=item Arguments: $collection, \@order?, $limit_start?, $limit_len?, \@fetch?, \@group?
=item Return Value: $result
=back
my $result = $conn->coll_query_infos($collection, {
order => [qw/artist/],
limit_start => 0,
limit_len => 10,
fetch => [qw/artist/],
group => [qw/artist/],
});
List the properties of all media matched by the given collection. The returned
list might be refined using the following parameters:
=over 4
=item * order
The list of properties to order by. C<undef> or an empty array reference to
disable.
=item * limit_start
The offset at which to start retrieving results. C<0> to disable.
=item * limit_len
The maximum number of entries to retrieve. C<0> to disable.
=item * fetch
The list of properties to retrieve (at least one property required).
=item * group
The list of properties to group by. C<undef> or an empty array reference to
disable.
=back
The above parameters might be passed either positional or within a hash
reference.
=head2 broadcast_collection_changed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_collection_changed;
Request the collection changed broadcast from the server. Everytime someone
manipulates a collection this will be emitted.
=head2 xform_media_browse
=over 4
=item Arguments: $url
=item Return Value: $result
=back
my $result = $conn->xform_media_browse('file:///media/music/');
Browse available media in a C<$url>.
=head2 xform_media_browse_encoded
=over 4
=item Arguments: $url
=item Return Value: $result
=back
my $result = $conn->xform_media_browse_encoded($url);
Same as L</xform_media_browse>, except it expects C<url> to be url encoded
already.
=head2 bindata_add
=over 4
=item Arguments: $data
=item Return Value: $result
=back
my $result = $conn->bindata_add($data);
Add binary data to the servers bindata directory.
=head2 bindata_retrieve
=over 4
=item Arguments: $hash
=item Return Value: $result
=back
my $result = $conn->bindata_retrieve($hash);
Retrieve a file from the servers bindata directory, based on the C<$hash>.
=head2 bindata_remove
=over 4
=item Arguments: $hash
=item Return Value: $result
=back
my $result = $conn->bindata_remove($hash);
Remove a file from the servers bindata directory, based on the C<$hash>.
=head2 bindata_list
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->bindata_list;
List all bindata hashes stored on the server.
=head2 config_register_value
=over 4
=item Arguments: $key, $default_value
=item Return Value: $result
=back
my $result = $conn->config_register_value('myclient.stop_playback_on_quit', 0);
Registers a configvalue called C<$key> with a C<$default_value> in the server.
=head2 config_set_value
=over 4
=item Arguments: $key, $value
=item Return Value: $result
=back
my $result = $conn->config_set_value('myclient.stop_playback_on_quit', 1);
Sets a configvalue called C<$key> to C<$value> in the server.
=head2 config_get_value
=over 4
=item Arguments: $key
=item Return Value: $result
=back
my $result = $conn->config_get_value('myclient.stop_playback_on_quit');
Retrieves the value of a configvalue called C<$key> from the server.
=head2 config_list_values
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->config_list_values;
Lists all configuration values.
=head2 broadcast_config_value_changed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_config_value_changed;
Requests the config_value_changed broadcast. This will be called when a
configvalue has been updated.
=head2 broadcast_mediainfo_reader_status
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_mediainfo_reader_status;
Request status for the mediainfo reader. It can be idle or working.
=head2 signal_mediainfo_reader_unindexed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->signal_mediainfo_reader_unindexed;
Request number of unindexed entries in medialib.
=head2 userconfdir_get
=over 4
=item Arguments: none
=item Return Value: $path
=back
Get the absolute path to the user config dir.
=head2 playback_tickle
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_tickle;
Stop decoding of current song. This will start decoding of the song set with
xmmsc_playlist_set_next, or the current song again if no
xmmsc_playlist_set_next was executed.
=head2 playback_stop
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_stop;
Stops the current playback. This will make the server idle.
=head2 playback_pause
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_pause;
Pause the current playback, will tell the output to not read nor write.
=head2 playback_start
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_start;
Starts playback if server is idle.
=head2 playback_seek_ms
=over 4
=item Arguments: $milliseconds
=item Return Value: $result
=back
my $result = $conn->playback_seek_ms(1000);
Seek to a absolute time in the current playback. The time is specified in
C<$milliseconds>.
=head2 playback_seek_ms_rel
=over 4
=item Arguments: $milliseconds
=item Return Value: $result
=back
my $result = $conn->playback_seek_ms_rel(-1000);
Seek to a time relative to the current position in the current playback. Time
is specified in C<$milliseconds>.
=head2 playback_seek_samples
=over 4
=item Arguments: $samples
=item Return Value: $result
=back
my $result = $conn->playback_seek_samples(5000);
Seek to a absoulte number of C<$samples> in the current playback.
=head2 playback_seek_samples_rel
=over 4
=item Arguments: $samples
=item Return Value: $result
=back
my $result = $conn->playback_seek_samples_rel(-5000);
Seek to a number of C<$samples> relative to the current position in the current
playback.
=head2 broadcast_playback_status
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playback_status;
Requests the playback status broadcast. This will be called when events like
play, stop and pause is triggered.
=head2 playback_status
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_status;
Request the playback status.
=head2 broadcast_playback_current_id
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playback_current_id;
Request the current id signal. This will be called then the current playing id
is changed. New song for example.
=head2 playback_current_id
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_current_id;
Request the current playback id.
=head2 signal_playback_playtime
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->signal_playback_playtime;
Request the playback_playtime signal. Will update the time we have played the
current entry.
=head2 playback_playtime
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_playtime;
Request the current playtime.
=head2 playback_volume_set
=over 4
=item Arguments: $channel, $volume
=item Return Value: $result
=back
my $result = $conn->playback_volume_set('left', 75);
Set the C<$volume> for a given C<$channel>.
=head2 playback_volume_get
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playback_volume_get;
Get the current playback volume.
=head2 broadcast_playback_volume_changed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playback_volume_changed;
Request the playback_volume_changed broadcast. This will be called when the
playback volume changed.
=head2 playlist_list
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playlist_list;
List the existing playlists.
=head2 broadcast_playlist_changed
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playlist_changed;
Request the playlist changed broadcast from the server. Everytime someone
manipulate the playlist this will be emitted.
=head2 broadcast_playlist_current_pos
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playlist_current_pos;
Request the playlist current pos broadcast. When the position in the playlist
is changed this will be called.
=head2 broadcast_playlist_loaded
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->broadcast_playlist_loaded;
Request the playlist_loaded broadcast. This will be called if a playlist is
loaded server-side.
=head2 playlist_current_active
=over 4
=item Arguments: none
=item Return Value: $result
=back
my $result = $conn->playlist_current_active;
Retrive the name of the active playlist.
=head2 playlist_set_next
=over 4
=item Arguments: $pos
=item Return Value: $result
=back
my $result = $conn->playlist_set_next(7);
Set next entry in the playlist to the absolute position C<$pos>.
=head2 playlist_set_next_rel
=over 4
=item Arguments: $pos
=item Return Value: $result
=back
my $result = $conn->playlist_set_next_rel(-1);
Same as L</playlist_set_next> but relative to the current position.
=head2 coll_idlist_from_playlist_file
=over 4
=item Arguments: $path
=item Return Value: $result
=back
my $result = $conn->coll_idlist_from_playlist_file('file:///path/to/some/playlist.m3u');
Create a new collections structure with type idlist from a playlist file at
C<$path>.
=head2 io_want_out
=over 4
=item Arguments: none
=item Return Value: 1 | 0
=back
my $has_pending_output = $conn->io_want_out;
Check for pending output.
=head2 io_out_handle
=over 4
=item Arguments: none
=item Return Value: $success
=back
my $success = $conn->io_out_handle;
Write pending data. Should be called when the mainloop flags that writing is
available on the socket.
=head2 io_in_handle
=over 4
=item Arguments: none
=item Return Value: $success
=back
my $success = $conn->io_in_handle;
Read available data. Should be called when the mainloop flags that reading is
available on the socket.
=head2 io_fd_get
=over 4
=item Arguments: none
=item Return Value: $fd | -1
=back
my $fd = $conn->io_fd_get;
Retrieve filedescriptor for the connection. Returns -1 on error. This is to be
used in a mainloop to do poll/select on. Reading and writing should B<NOT> be
done on this fd. L</io_in_handle> and L</io_out_handle> B<MUST> be used to
handle reading and writing.
=head2 io_need_out_callback_set
=over 4
=item Arguments: \&func, $data?
=item Return Value: none
=back
$conn->io_need_out_callback_set(sub { ... });
Set callback for enabling/disabling writing.
If the mainloop doesn't provide a mechanism to run code before each iteration
this function allows registration of a callback to be called when output is
needed or not needed any more. The arguments to the callback are the
connection, flags and C<$data>, if specified; flag is true if output is wanted,
false if not.
=head2 loop
=over 4
=item Arguments: none
=item Return Value: none
=back
$conn->loop;
Starts a select-based mainloop which may be terminated by calling
C</quit_loop>.
=head2 quit_loop
=over 4
=item Arguments: none
=item Return Value: none
=back
$conn->quit_loop;
Terminates the mainloop started with C</loop>.
=head1 AUTHOR
Florian Ragwitz <rafl@debian.org>
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Audio::XMMSClient
You can also look for information at:
=over 4
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Audio-XMMSClient>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/Audio-XMMSClient>
=item * RT: CPAN's request tracker
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Audio-XMMSClient>
=item * Search CPAN
L<http://search.cpan.org/dist/Audio-XMMSClient>
=back
=head1 SEE ALSO
L<Audio::XMMSClient::Result>, L<Audio::XMMSClient::Playlist>, L<Audio::XMMSClient::Collection>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2006-2008, Florian Ragwitz
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself, either Perl version 5.8.8 or, at your option,
any later version of Perl 5 you may have available.
|