When a viewer scrolls the player out of view, a floating player would pop-up and position itself following the configuration. This allows the viewer to engage with both the video content and the site content.
Type: Object
position
("bottom-left"
|"bottom-right"
|"top-left"
|"top-right"
) The position where the floating player will be displayed (optional, default'bottom-right'
)dismissible
boolean When set to true, viewer will be able to dismiss the floating player so that it doesn’t appear anymore while he scrolls the current page (optional, defaulttrue
)draggable
boolean When set to true, viewer will be able to drag the floating player. Uncheck if you want to have a fixed location for the floating player (optional, defaulttrue
)height
number The height of the floating player in pixels (optional, default225
)width
number The width of the floating player in pixels (optional, default400
)marginX
number The margin, in pixels, from the selected edge, on the X-Axis (optional, default20
)marginY
number The margin, in pixels, from the selected edge, on the Y-Axis (optional, default20
)
Type: Object
Fired when the player started / stopped floating due to visibility change
Fired when the player stopped floating due to end user dismissal