Module: @bldr/vue-plugin-media

@bldr/vue-plugin-media

Resolve media files. Counter part of the BALDR media server.

Classes

MediaFile
WrappedSamples
Canvas
CustomEvents
Interval
Media
MultiPartAsset
MultiPartSelection
Player
PlayList
Resolver
Sample
TimeOut
WrappedSample

Members

module:@bldr/vue-plugin-media.assetTypes staticconstant

module:@bldr/vue-plugin-media.router Object static

module:@bldr/vue-plugin-media.shortcuts module:@bldr/vue-plugin-shortcuts~Shortcuts static

A instance of the class Shortcuts().

module:@bldr/vue-plugin-media.store Object static

The vuex store instance.

storeModule innerconstant

Methods

module:@bldr/vue-plugin-media.formatDuration (duration)String static

Name Type Description
duration String

in seconds

Returns:
Type Description
String

createMediaElement (mediaFile) asyncinner

Name Type Description
mediaFile MediaFile

extractMediaUrisRecursive (object, uris)Array inner

Extract media URIs from an object to allow linked media assets inside from media assets itself.

---
title: Für Elise
id: HB_Fuer-Elise
cover: id:BD_Feuer-Elise
Name Type Description
object Object

For example from the YAML files.

uris Array

The target array to collect all found media URIs.

Returns:
Type Description
Array

removeDuplicatesFromArray (input)Array inner

Remove duplicates from an array. A new array is created an returns

Name Type Description
input Array

An array with possible duplicate entries.

Returns:
Type Description
Array
  • The new array with no duplicates.

Type Definitions

mediaFileSpec String | File

A mediaFileSpec can be:

  1. A remote URI (Uniform Resource Identifier) as a string, for example id:Joseph_haydn or filename:beethoven.jpg which has to be resolved.
  2. A already resolved HTTP URL, for example https://example.com/Josef_Haydn.jg
  3. A file object https://developer.mozilla.org/de/docs/Web/API/File

mediaFileSpecs Array.<mediaFileSpec> | mediaFileSpec

An array of mediaFileSpec or a single mediaFileSpec