- foobar-control-http
- ~Foobar
- ~FoobarControl
- .getStatus() ⇒
Promise.<Foobar.Status>
- .queueItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .dequeueItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .setFocus(itemIndex) ⇒
Promise.<Foobar.Status>
- .removeItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .seek(percent) ⇒
Promise.<Foobar.Status>
- .playbackOrder(playbackOrder) ⇒
Promise.<Foobar.Status>
- .volume(volume) ⇒
Promise.<Foobar.Status>
- .stopAfterCurrent(sac) ⇒
Promise.<Foobar.Status>
- .stopAfterQueue(saq) ⇒
Promise.<Foobar.Status>
- .queueRandomItems(itemsCount) ⇒
Promise.<Foobar.Status>
- .switchPlaylist(playlistIndex) ⇒
Promise.<Foobar.Status>
- .playlistPage(playlistPage) ⇒
Promise.<Foobar.Status>
- .stop() ⇒
Promise.<Foobar.Status>
- .playOrPause() ⇒
Promise.<Foobar.Status>
- .previous() ⇒
Promise.<Foobar.Status>
- .next() ⇒
Promise.<Foobar.Status>
- .random() ⇒
Promise.<Foobar.Status>
- .queueAlbum() ⇒
Promise.<Foobar.Status>
- .emptyPlaylist() ⇒
Promise.<Foobar.Status>
- .start(trackIndex) ⇒
Promise.<Foobar.Status>
- .getStatus() ⇒
Contains types used by FoobarControl.
Kind: inner property of foobar-control-http
Control an instance of foobar2000 through 'foo_httpcontrol' and 'ajquery'.
Kind: inner property of foobar-control-http
- ~FoobarControl
- .getStatus() ⇒
Promise.<Foobar.Status>
- .queueItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .dequeueItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .setFocus(itemIndex) ⇒
Promise.<Foobar.Status>
- .removeItem(itemIndex) ⇒
Promise.<Foobar.Status>
- .seek(percent) ⇒
Promise.<Foobar.Status>
- .playbackOrder(playbackOrder) ⇒
Promise.<Foobar.Status>
- .volume(volume) ⇒
Promise.<Foobar.Status>
- .stopAfterCurrent(sac) ⇒
Promise.<Foobar.Status>
- .stopAfterQueue(saq) ⇒
Promise.<Foobar.Status>
- .queueRandomItems(itemsCount) ⇒
Promise.<Foobar.Status>
- .switchPlaylist(playlistIndex) ⇒
Promise.<Foobar.Status>
- .playlistPage(playlistPage) ⇒
Promise.<Foobar.Status>
- .stop() ⇒
Promise.<Foobar.Status>
- .playOrPause() ⇒
Promise.<Foobar.Status>
- .previous() ⇒
Promise.<Foobar.Status>
- .next() ⇒
Promise.<Foobar.Status>
- .random() ⇒
Promise.<Foobar.Status>
- .queueAlbum() ⇒
Promise.<Foobar.Status>
- .emptyPlaylist() ⇒
Promise.<Foobar.Status>
- .start(trackIndex) ⇒
Promise.<Foobar.Status>
- .getStatus() ⇒
Get the player's current status.
Kind: instance method of FoobarControl
Add an item into the queue by its index in the current playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
itemIndex | number |
The 0-based index in the current playlist of the item to add to the queue. |
Remove at item from the queue by its index in the current playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
itemIndex | number |
The 0-based index in the current playlist of the item to remove from the queue. |
Set the cursor position to an item by its index in the current playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
itemIndex | number |
The 0-based index in the current playlist of the item to set cursor position to. |
Remove an item from the current playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
itemIndex | number |
The 0-based index in the current playlist of the item to remove. |
Set the caret to a certain percentage through the track.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
percent | number |
The desired progress through the track, as a fraction of 1. |
Set the playback order.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
playbackOrder | Foobar.PlaybackOrder |
The desired playback order. |
Set the volume level.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
volume | number |
The desired volume as a fraction of 1. |
Set the status of the 'stop after current' flag.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
sac | boolean |
The desired flag status. |
Set the status of the 'stop after queue' flag.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
saq | boolean |
The desired flag status. |
Add a certain number of random items to the queue.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
itemsCount | number |
The number of items to add. |
Switch playback to another playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
playlistIndex | number |
The 0-based index of the playlist to switch to. |
Switch the view window to another page of the playlist.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
playlistPage | number |
The 0-based page to switch to. |
Stop playback.
Kind: instance method of FoobarControl
Pause or resume playback.
Kind: instance method of FoobarControl
Move playback to the previous track.
Kind: instance method of FoobarControl
Move playback to the next track.
Kind: instance method of FoobarControl
Move playback to a random track.
Kind: instance method of FoobarControl
Add the current track's album to the queue.
Kind: instance method of FoobarControl
Empty the current playlist.
Kind: instance method of FoobarControl
Start playing, optionally specifying a specific track to play.
Kind: instance method of FoobarControl
Param | Type | Description |
---|---|---|
trackIndex | number |
The 0-based index in the current playlist of the track to play. |