waud.js
API Docs for v1.0.3
Show:

WaudFocusManager

Summary

Cross-browser utility class used to mute/unmute audio on focus on/off events. Used when Waud.autoMute() is called.

This can also be used as a standalone utility class to handle focus on/off events.

Constructor

WaudFocusManager

Syntax

WaudFocusManager

()

Summary

Example:

    var fm = new WaudFocusManager();
    fm.focus = onFocus;
    fm.blur = onBlur;

Item Index

Properties

Methods

_blur

Syntax

_blur

() private

Summary

Function to trigger blur callback.

_focus

Syntax

_focus

() private

Summary

Function to trigger focus callback.

_handleVisibilityChange

Syntax

_handleVisibilityChange

() private

Summary

Function to handle visibility change event.

clearEvents

Syntax

clearEvents

()

Summary

Function to clear focus manager events.

Example:

fm.clearEvents();

Properties

blur

Syntax

blur

Function

Summary

Blur callback function.

Example:

fm.blur = onBlur;

focus

Syntax

focus

Function

Summary

Focus callback function.

Example:

fm.focus = onFocus;