Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)
If disabled, stop after current track flag persists for next tracks.
Returns bitrate of current track, in kbps.
Returns number of channels of current track
Gets/Sets whether crossfading is enabled.
Returns number of entries in nowplaying list.
Gets integer id of the object
Returns true, if player is currently playing.
Mutes/unmutes volume, gets if volume is muted
Gets/Sets leveling of playback volume (normalization)
Gets the object type as string
Gets/Sets sound panning(balance), -1 = left, 0 - middle, 1 = right
Returns true, if player is currently paused
Gets persistent id of the object
Gets nowplaying list position, -1 = undefined, 0...n current track order. For setting use setPlaylistPosAsync or setPlaylistPosByEntryAsync.
Gets/Sets repeating current file in nowplaying list.
Gets/Sets repeating nowplaying list.
Returns sample rate of current track, in Hz.
Gets/Sets shuffling nowplaying list.
Gets/Sets stop after current track flag.
Gets the object title
Gets current track length, in ms.
Gets current track playback position, in ms. For setting position use seekMSAsync.
Gets object for managing visualization.
Gets/Sets volume, 0 = silent, 1 = maximum volume.
Asynchronously adds given tracks to nowplaying list.
Promise is fulfilled when action is completed.
Optional
params: { Optional
afterif true, it places new tracks just after the currently playing track, default = false
Optional
byif true, it uses shuffle by album, relevant only if shuffle=true, default = false
Optional
focusedfocused position in tracklist adding to the playing list, usable when adding whole list, but starting playback from the doubleclicked track, default = -1
Optional
forceif true, it plays only preview of added tracks, default = false
Optional
mix?: booleanif true, it merges randomly given tracks with tracks in playlist, default = false
Optional
position?: numberposition in nowplaying list, where to place new tracks (0 = begin of the list, -1 = end of the list). Valid only if afterCurrent=false and withClear=false, default = -1
Optional
saveif true, it adds this action to nowplaying history, default = true
Optional
shuffle?: booleanif true, it shuffles given tracklist before it is added, default = false
Optional
startif true, it starts playback just after the tracks are added, default = false
Optional
withif true, it clears nowplaying list before adding tracks, default = false
Runs analyze waveform on specified tracks.
Tracks to be analyzed
Returns PluginList, with currently selected plugin checked.
List of input or decode BasePlugin
Returns PluginList, with currently active plugin checked.
List of output BasePlugin
Returns stringlist with short descriptions of possible redo actions.
Force to return only first redo action, if exists.
List of strings - short descriptions of currently possible redo actions.
Gets current nowplaying list. Note that it returns PlaylistEntries class, to get Tracklist use getTracklist method instead
Returns stringlist with short descriptions of possible undo actions.
Force to return only first undo action, if exists.
List of strings - short descriptions of currently possible undo actions.
Returns Waveform data for given SD
If true, recomputes waveform
Promise is fulfilled with computed waveform data
Returns true, if song SD is currently playing.
Play next file in nowplaying list.
Optional
checkSkip: booleanIf true, then the track's last skipped and skip count will be updated.
Optional
cannotPlayCurrent: booleanSet true if there was an error playing the current track.
Promise is fulfilled when playback of the next track started
Removes all selected tracks from nowplaying list, asynchronously.
Promise is fulfilled when operation is completed
Sets given output plugin as active.
Changes playlistPos in nowplaying list to entry pe, asynchronously.
Promise is fulfilled when operation is completed
Event is called when state of the HTML player is changed ... like playback is started etc. Possible states are 'unpause', 'play', 'stop', 'pause', 'trackChanged', 'listReordered'.
See App.listen
new playback state
position in miliseconds
Event is called when player layout is somehow modified.
See App.listen
Event is called when now playing list is somehow modified.
See App.listen
Event is called when playback ends.
See App.listen
Event is called when state of the player is changed ... like playback is started etc. Possible states are 'unpause', 'play', 'stop', 'pause', 'trackChanged', 'listReordered'.
See App.listen
new playback state
Event is called when repeat is enabled/disabled.
See App.listen
new value for repeat
Event is called when playback position changed by user interaction.
See App.listen
new position
Event is called when shuffle is enabled/disabled.
See App.listen
new value for shuffle
Event is called when stopAfterCurrentTrack is enabled/disabled.
See App.listen
new value for stopAfterCurrentTrack
Event is called when now user is manually skipped track.
See App.listen
Class for working with player. Access via the global
app.player
.Player