Members
players :Array.<module:media/ActiveMediaPlayer.ActiveMediaPlayer>
The collection of ActiveMediaPlayer objects stored in this media bag.
- Source
Methods
createActiveMediaPlayer(mc, mb, ps) → {module:media/ActiveMediaPlayer.ActiveMediaPlayer}
Creates a new ActiveMediaPlayer linked to this media bag
| Name | Type | Description | 
|---|---|---|
| mc | module:media/MediaContent. | The content used by the new player | 
| mb | module:bags/MediaBag. | The project's MediaBag | 
| ps | module:JClicPlayer. | An object implementing the | 
- Source
getActiveMediaPlayer(mc, mb, ps) → {module:media/ActiveMediaPlayer.ActiveMediaPlayer}
Looks for an already existing ActiveMediaPlayer equivalent to the requested.
When not found, a new one is created and and returned.
| Name | Type | Description | 
|---|---|---|
| mc | module:media/MediaContent. | The content used by the new player | 
| mb | module:bags/MediaBag. | The project's MediaBag | 
| ps | module:JClicPlayer. | An object implementing the | 
- Source
realizeAll()
Realizes all the media elements stored in this bag
- Source
removeActiveMediaPlayer(mc)
Removes from the list of players the ActiveMediaPlayer related to the specified module:media/MediaContent.MediaContent.
| Name | Type | Description | 
|---|---|---|
| mc | module:media/MediaContent. | The media content to look for. | 
- Source
removeAll()
Removes all players from this media bag
- Source
stopAll(level)
Stops playing all media elements stored in this bag
| Name | Type | Description | 
|---|---|---|
| level | number | Level at and below what all media players will be muted. | 
- Source