videoAndAudio.js

Methods

initAudioOrVideo(wmm, type)#

Parameters:
NameTypeDescription
wmmobjectWmmAudio or WmmVideo instance.
typestring'video' or 'audio'.
Source:

initCssClasses(wmm)#

Init CSS of WmmVideo or WmmAudio component.
Parameters:
NameTypeDescription
wmmobjectWmmAudio or WmmVideo instance.
Source:

unloadMedia(mediaEl)#

Make sure video and audio elements release their resources when removed from DOM.
Parameters:
NameTypeDescription
mediaElElement
Source: