Skip to content

Commit

Permalink
feat(FEC-10709, FEC-10712): player visibility - Auto-pause when playe…
Browse files Browse the repository at this point in the history
…r is out of view, Autoplay only when player is in view (#395)

Created ViewabilityManager to handle changes in client viewability - scrolling / tabbing out
New api isVisibile
New event VISIBILITY_CHANGE
Handle "inview" autoplay
Handle autopause
  • Loading branch information
RoyBregman authored Jan 14, 2021
1 parent ec3691e commit d1d3feb
Show file tree
Hide file tree
Showing 18 changed files with 1,546 additions and 1,365 deletions.
9 changes: 6 additions & 3 deletions docs/advertisement-layout-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

With ad layout config you can create your own ad break timeline using your vast tags.
Ad break can be set as pre, mid and post rolls and each ad break can contain a single vast tag or multiple tags, either as a pod, but also as a [Waterfall](#waterfalling).

> **Important:** [IMA plugin](https://github.com/kaltura/playkit-js-ima) must be active to enable this feature.
## Table of Contents
Expand Down Expand Up @@ -305,6 +306,7 @@ kalturaPlayer.ads.playAdNow(
### Seekbar Cue Points

To display cue points on the seekbar to indicates the ad break positions use `showAdBreakCuePoint` option, as following:

```js
const config = {
...
Expand All @@ -326,6 +328,7 @@ const config = {
```

To customize the cue points style use `adBreakCuePointStyle` option. for example:

```js
const config = {
...
Expand All @@ -337,8 +340,8 @@ const config = {
adBreakCuePointStyle: {
marker: {
width: 10,
color: 'rgb(255, 0, 0)'
}
color: 'rgb(255, 0, 0)'
}
},
adBreaks: [{
position: 60,
Expand All @@ -352,4 +355,4 @@ const config = {
}
```

All style options are listed [here](https://github.com/kaltura/playkit-js-timeline/blob/main/docs/types.md#cuepointoptionsobject).
All style options are listed [here](https://github.com/kaltura/playkit-js-timeline/blob/main/docs/types.md#cuepointoptionsobject).
Loading

0 comments on commit d1d3feb

Please sign in to comment.