Automatically pauses the player based on certain rules
By default, adding an empty autoPause
object enables the auto pause player functionality and also sets viewability: true
.
jwplayer("myElement").setup({
"playlist": "https://example.com/myVideo.mp4",
...
"autoPause": {
"viewability": true,
"pauseAds": true
}
});
Property | Description |
---|---|
pauseAds 8.10.0+ boolean | Controls if ad playback stops when the player is no longer viewable
Possible values:
NOTE: If viewability: false , setting pauseAds: true will have no effect.
|
viewability boolean | Controls if video playback stops when player is no longer viewable
Possible values:
|