Outstream Units

Set offset for sticky unit

Add an offset to the player or outstream unit when it's stickied to a corner of your choice

Many sites have fixed elements, for example at the bottom of the page. To keep a sticky player or outstream unit above them, add inviewBottomOffset to your embed code. Use the other parameters below to fine-tune the sticky position.

Parameter name

Description

inviewTopOffset (string)

Set a top offset in pixels for the sticky player or outstream unit

inviewBottomOffset (string)

Set a bottom offset in pixels for the sticky player or outstream unit

inviewLeftOffset (string)

Set a left offset in pixels for the sticky player or outstream unit

inviewRightOffset (string)

Set a right offset in pixels for the sticky player or outstream unit

closeButtonVerticalOffset (string)

Set a vertical offset in pixels for the sticky player or outstream unit close "X" button

closeButtonHorizontalOffset (string)

Set a horizontal offset in pixels for the sticky player or outstream unit close "X" button

Example

$bos("DIV_ID", {
    "id":"UNIT_ID",
    "width":"640",
    "height":"360",
    "inviewBottomOffset":"30px"
});

The code above adds a 30px bottom offset to the sticky unit. Percentages of the browser window are also accepted, for example "inviewBottomOffset": "20%".

Mobile devices: the four inview…Offset values are replaced by inviewTopOffset_mobile, inviewBottomOffset_mobile, inviewLeftOffset_mobile and inviewRightOffset_mobile. If those aren’t set, no offset is applied on mobile.

Set offset for sticky unit · TargetVideo Developer Docs