videoAndAudio.js
Methods
(wmm, type)#
initAudioOrVideoParameters:
Name | Type | Description |
---|---|---|
wmm | object | WmmAudio or WmmVideo instance. |
type | string | 'video' or 'audio'. |
- Source:
(wmm)#
initCssClassesInit CSS of WmmVideo or WmmAudio component.
Parameters:
Name | Type | Description |
---|---|---|
wmm | object | WmmAudio or WmmVideo instance. |
- Source:
(mediaEl)#
unloadMediaMake sure video and audio elements release their resources when removed from DOM.
Parameters:
Name | Type | Description |
---|---|---|
mediaEl | Element |
- Source: