bags/MediaBagElement
Source: MediaBagElement.js:32
File : bags/MediaBagElement.js
Created : 07/04/2015
By : Francesc Busquets francesc@gmail.com
JClic.js
An HTML5 player of JClic activities
https://projectestac.github.io/jclic.js
- License: EUPL-1.2
Instance Fields
_audioPlayers: Array.<external:HTMLAudioElement>
Private static array of HTMLAudioElements,
to be reused between all media elements of type 'audio'. One for each priority level
_currentAudioElements: Array.<bags/MediaBagElement>
Private static array of MediaBagElements,
used to store a reference to the element using each audioPlayer
Other
MediaBagElement
This kind of objects are the components of MediaBag.
Media elements have a name, a reference to a file (the file field) and, when initialized,
a data field pointing to a object containing the real media. They have also a flag indicating
if the data must be saved on the JClicProject zip file or just maintained as a reference
to an external file.
Parameters
basePath(string) — Path to be used as a prefix of the file namefile(string) — The media file namezip(external:JSZip, optional) — An optional JSZip object from which the file must be extracted.