Const Adds (inserts) the new cue for the given track to the compilation, by inserting it by the order in time.
Adds a new default track for the given file name or media URL to the compilation.
Track properties are derived from the given file name or url The new track is made the selected track No media data is added, it must get handled elsewhere.
Adds a blob as a media source, using a name and a blob
Adds a media blob URL to the store.
The MediaUrl to use
A new blob URL replaces any existing with an exact same path.
Adds a provided track to the compilation.
The new track is made the selected track No media data is added, it must get handled elsewhere.
Discards a media blob URL from the store.
The MediaUrl to use
Whether the track is the first track in the set of media tracks
Whether the track is the last track in the set of media tracks
Loads a single file, of any supported content.
The file to use
The file might have been downloaded or loaded from the local file system. It might be a package file or a single file of any supported content. This method can be called multiple times, each resource gets appropriately added to the current compilation
Loads a single file (media or package file) from an URL
The URL to load the file from
A locally usable name, derived from the URL, which can be used to match the track to the stored media file
The file content might be of any supported content. This method can be called multiple times, each resource gets appropriately added to the current compilation The resource is expected to support appropriate CORS Headers
Replaces the current compilation with a new one
If there is only a single track in the new compilation, this track becomes the active track. For single-track compilations this causes the widget player to be shown immediately. Does not set the selected cue. Does not remove any existing media. If required, this must be done separately.
Updates the track meter.
This is only relevant for music tracks
Updates the currently selected track Id, for application-wide handling
This does not control the playback itself. It is intended for display and handling purposes. Removes any previous cue id selection, then selects the first cue of this track, if available. Removes any previous next cue id selection.
Uses a single media resource from an URL, by adding the URL to the set of stored media URLs.
The URL to use
A promise to a locally usable name, derived from the URL, which can be used to match the track to the stored media URL
The resource is expected to be a single, supported media file. No further assertion about the resource is made within this method, and the resource does not need to support any CORS Headers, because it's only used as-is, as a media source. This method can be called multiple times, each URL gets appropriately added to the current compilation.
Returns the app state to it's default