Drawer
|
Drawer |
wrapper should exist and have correct tagName
|
wrapper |
handleEvent should return 0.5 if clicked in the middle of wrapper
|
handleEvent/0.5 |
handleEvent should return 0.9 if clicked 10% from the end
|
handleEvent/0.9 |
handleEvent should return 0 if clicked on wrapper left position
|
handleEvent/left |
handleEvent should return 0 if clicked on wrapper left position -1px
|
handleEvent/left-1 |
handleEvent should not return 0 if clicked on wrapper left position +1px
|
handleEvent/left+1 |
handleEvent should return 1 if clicked on wrapper right position
|
handleEvent/right |
handleEvent should return 1 if clicked on wrapper right position +1px
|
handleEvent/right+1 |
handleEvent should not return 1 if clicked on wrapper right position -1px
|
handleEvent/right-1 |
Drawer/vertical:
|
Drawer |
wrapper should exist and have correct tagName
|
wrapper |
handleEvent should return 0.5 if clicked in the middle of wrapper
|
handleEvent/0.5 |
handleEvent should return 0.9 if clicked 10% from the end
|
handleEvent/0.9 |
handleEvent should return 0 if clicked on wrapper left position
|
handleEvent/left |
handleEvent should return 0 if clicked on wrapper left position -1px
|
handleEvent/left-1 |
handleEvent should not return 0 if clicked on wrapper left position +1px
|
handleEvent/left+1 |
handleEvent should return 1 if clicked on wrapper right position
|
handleEvent/right |
handleEvent should return 1 if clicked on wrapper right position +1px
|
handleEvent/right+1 |
handleEvent should not return 1 if clicked on wrapper right position -1px
|
handleEvent/right-1 |
WaveSurfer/MediaElementWebAudio:
|
WaveSurfer |
WaveSurfer/MediaElementWebAudio/errors:
|
WaveSurfer |
WaveSurfer/MediaElement:
|
WaveSurfer |
WaveSurfer/MediaElement/errors:
|
WaveSurfer |
PeakCache:
|
- |
empty cache returns full range
|
PeakCache#addRangeToPeakCache |
different length clears cache
|
PeakCache#addRangeToPeakCache |
consecutive calls return no ranges
|
PeakCache#addRangeToPeakCache |
sliding window returns window sized range
|
PeakCache#addRangeToPeakCache |
disjoint set creates two ranges
|
PeakCache#getCacheRanges |
filling in disjoint sets coalesces
|
PeakCache#getCacheRanges |
filling in disjoint sets coalesces / edge cases
|
PeakCache#getCacheRanges |
WaveSurfer/plugin API:
|
WaveSurfer |
addPlugin adds staticProps and correctly builds and instantiates plugin class
|
WaveSurfer#addPlugin |
initPlugin calls init function of the plugin and adds its name to the initialisedPluginList
|
WaveSurfer#initPlugin |
destroyPlugin calls plugin destroy function and removes the plugin name from the initialisedPluginList
|
WaveSurfer#destroyPlugin |
registerPlugin adds a plugin but does not call plugin init function if the plugin property deferInit is truethy
|
WaveSurfer#registerPlugins |
registerPlugin adds a plugin ands calls plugin init function if the plugin property deferInit is falsey
|
WaveSurfer#registerPlugins |
getActivePlugins returns map of plugin names that are currently initialised
|
WaveSurfer#getActivePlugins |
util.fetchFile:
|
util.fetchFile |
load ArrayBuffer response
|
- |
load Blob response
|
- |
load JSON response
|
- |
load text response
|
- |
load unknown response type
|
- |
throws error when URL contains credentials
|
- |
throws error when URL is missing
|
- |
throws error when options are missing
|
- |
fires error event when the file is not found
|
- |
accepts custom request headers
|
- |
util:
|
util |
getId returns a random string with a default prefix
|
getId |
getId returns a random string with a custom prefix
|
getId |
min returns the smallest number in the provided array
|
min |
min returns +Infinity for an empty array
|
min |
max returns the largest number in the provided array
|
max |
max returns -Infinity for an empty array
|
max |
absMax returns largest absolute number in the provided array when largest is positive
|
absMax |
absMax returns largest absolute number in the provided array when largest is negative
|
absMax |
absMax returns -Infinity for an empty array
|
absMax |
style applies a map of styles to an element
|
style |
util.clamp:
|
util.clamp |
clamp should return min if val is less than min
|
clamp/min |
clamp should return val if val is more than min and less than max
|
clamp/val |
clamp should return max if val is more than max
|
clamp/max |
WaveSurfer/playback:
|
WaveSurfer |
be ready
|
WaveSurfer#isReady |
have version number
|
WaveSurfer#VERSION |
play
|
WaveSurfer#play
WaveSurfer#isPlaying |
pause
|
WaveSurfer#play
WaveSurfer#isPlaying
WaveSurfer#pause |
play or pause
|
WaveSurfer#playPause
WaveSurfer#isPlaying |
cancelAjax
|
WaveSurfer#cancelAjax |
loadBlob
|
WaveSurfer#loadBlob |
get duration
|
WaveSurfer#getDuration |
get currentTime
|
WaveSurfer#getCurrentTime |
set currentTime
|
WaveSurfer#setCurrentTime |
should skip backward
|
WaveSurfer#skipBackward |
skip forward
|
WaveSurfer#skipForward |
get playback rate
|
WaveSurfer#getPlaybackRate |
set playback rate
|
WaveSurfer#setPlaybackRate |
get volume
|
WaveSurfer#getVolume |
set volume
|
WaveSurfer#setVolume |
toggle mute
|
WaveSurfer#toggleMute |
set mute
|
WaveSurfer#setMute |
get mute
|
WaveSurfer#getMute |
set zoom parameters
|
WaveSurfer#zoom |
set unzoom parameters
|
WaveSurfer#zoom |
allow getting waveColor
|
WaveSurfer#getWaveColor |
allow setting waveColor
|
WaveSurfer#setWaveColor |
allow setting waveColor gradient using array of fill colors
|
WaveSurfer#setWaveColorGradient |
allow setting waveColor using CanvasGradient
|
WaveSurfer#setWaveColorCanvasGradient |
allow getting progressColor
|
WaveSurfer#getProgressColor |
allow setting progressColor
|
WaveSurfer#setProgressColor |
split channels options
|
- |
allow getting channel waveColor
|
WaveSurfer#getChannelWaveColor |
allow setting channel waveColor
|
WaveSurfer#setChannelWaveColor |
allow getting channel progressColor
|
WaveSurfer#getChannelProgressColor |
allow setting channel progressColor
|
WaveSurfer#setChannelProgressColor |
allow getting cursorColor
|
WaveSurfer#getCursorColor |
allow setting cursorColor
|
WaveSurfer#setCursorColor |
allow getting backgroundColor
|
WaveSurfer#getBackgroundColor |
allow setting backgroundColor
|
WaveSurfer#setBackgroundColor |
allow getting height
|
WaveSurfer#getHeight |
allow setting height
|
WaveSurfer#setHeight |
return Promise with PCM array data
|
WaveSurfer#exportPCM |
return Promise with PCM array data in new window
|
- |
return the list of current set filters as an array
|
WaveSurfer#getFilters |
export image data
|
WaveSurfer#exportImage |
destroy
|
WaveSurfer#destroy |
seek event emission
|
- |
when event emissions are not disabled
|
- |
all event handlers should be called
|
- |
when seek and interaction events are disabled
|
- |
should not call event handlers for either "seek" or "interaction"
|
- |
WaveSurfer/errors:
|
WaveSurfer |
throw when container element is not found
|
WaveSurfer |
throw when media container element is not found
|
WaveSurfer |
throw for invalid maxCanvasWidth param
|
WaveSurfer |
throw for invalid renderer
|
WaveSurfer |
not throw when rendered and media is not loaded
|
WaveSurfer |
throw when url parameter for load is empty
|
WaveSurfer#load |
Doesn't call load() automatically so you can test loading behaviour here
|
- |
load should accept HTMLMediaElement as the url
|
WaveSurfer#load |