List of media sources used by this Pool.
Fires when the Pool stops and is not looping.
Fires for each drop in the Pool. Callback is passed the drop index.
The number of times the present run will drop.
The distribution weighting for drops in the Pool * (1 = neutral, lower = later, higher = earlier). Uses weightedRandom under the hood.
NB: This will be changed to use a distribution function in future versions.
Total duration of the current iteration of the pool (ms).
Whether the Pool should restart when it ends.
Determines whether the Assets will be played in order or at random. (To weight the randomness, add duplicate Assets.)
Fires when the Pool is paused.
Fires when a sound begins to play. Use this instead of Pool.drop$ to gain access to the Video.
Fires when the Pool is resumed.
Fires at the start of a Pool cycle.
Fires at the end of a Pool cycle.
Removes Video from internal lists and calls Video.destroy. Use this to remove the video from the DOM so that PoolTime can remove its references to the DOM element.
Pauses the Pool.
Preloads all Assets in the list. Returned observable fires when each
video's canplaythrough event fires.
Resumes the Pool.
Starts the pool.
Generated using TypeDoc
VideoPool
A MediaPool designed to handle playback of video files. Though this class will handle the timing, loading, and element creation for you, you still need to add the generated video element to the DOM. Do this by subscribing to play$.