Overview
The AnyClip Floating Player is a smaller, sticky player positioned in one of the page corners when the main video placement is not in view, keeping the video content constantly in view.
The general Floating Player works as follows:
The Player will change its position to floating or docked according to the player-placeholder visibility:
Player-placeholder in view - player docked
Player-placeholder not in view - player floating
The Player will check if it should float or dock in the following events:
Player-placeholder visibility is changed from in-view to not-in-view, or vice versa.
after
aclreFloatingModeToggle(true)
is called.
API
The floating functionality can be completely disabled in run-time.
// goFloat- boolean. true to enable floating. false to disable.
//for sisngle player
window.aclreFloatingModeToggle(goFloat);
//for multiple players (see: Managing Multiple Players)
widget_A.floatingModeToggle(goFloat)
Example
// disable floating
window.aclreFloatingModeToggle(false);