Skip to main content

Premium.audio

Premium.audio.inactiveTabListener(elements)

ParameterDefinition
elementsmedia elements to be included default: all media elements

Initializes media elements to either pause or mute when the current tab becomes inactive.

Premium.audio.inactiveTabListener(document.querySelectorAll('VIDEO'));