Core action
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1552640647";
|
||||
var build = "1552850454";
|
||||
var version = "3.33.0";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -231,6 +231,48 @@ export function removeFromIndex(index_name, key, new_key = null){
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Playing of assetse
|
||||
**/
|
||||
|
||||
/**
|
||||
* Play one or many URIs
|
||||
*
|
||||
* @param uri = String (when playing just one URI, eg playlist)
|
||||
* @param uris = Array (when playing several URIs, eg tracks)
|
||||
* @param origin = String (URI from which these URIs came)
|
||||
* @param shuffle = Boolean (shuffle the order of URIs)
|
||||
**/
|
||||
export function playURIs(uri = null, uris = [], origin = null, shuffle = false){
|
||||
return {
|
||||
type: 'PLAY_URIS',
|
||||
uri: uri,
|
||||
uris: uris,
|
||||
origin: origin,
|
||||
shuffle: shuffle
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue one or many URIs
|
||||
*
|
||||
* @param uris = Array
|
||||
* @param position = Int (position in track_list in which to insert these URIs)
|
||||
* @param origin = String (URI from which these URIs came)
|
||||
* @param shuffle = Boolean (shuffle the order of URIs)
|
||||
**/
|
||||
export function enqueueURIs(uris = [], position = null, origin = null, shuffle = false){
|
||||
return {
|
||||
type: 'ENQUEUE_URIS',
|
||||
position: position,
|
||||
uris: uris,
|
||||
origin: origin,
|
||||
shuffle: shuffle
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Playlist manipulation
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user