In-Page Configuration Properties Specific To Connector Script For Video Players

While most In-Page Configuration Properties can be used to configure both forms of Connector Script, some In-Page Configuration Properties are specific to Connector Script For Video Players.

Video-specific In-Page Configuration Properties are nested in the video namespace.

Mode

Defines the mode that the plugin should operate in. Read more about modes in chapter Connector Script For Video Players.

This property is optional, it defaults to sell-video.

Possible values:

Mode Value Note
Sell Video sell-video This is the default value
Skip Ad Pre-Roll skip-ad-pre-roll  
Skip Ad Pre-Play skip-ad-pre-play  

Example for JW Player:

jwplayer('video-container').setup({
    file: 'video-file.mp4',
    laterpayConnector: {
        video: {
            mode: 'skip-ad-pre-play'
        }
    }
})

The example above creates a new JW Player instance and defines the mode “Skip Ad Pre-Play” for Connector Script.

Sell Video Offset

This property applies to mode “Sell Video” only. It defines the length in seconds of a teaser that can be viewed before the video is stopped and the Purchase Overlay appears.

This property is optional, it defaults to 0 (seconds).

jwplayer('video-container').setup({
    file: 'video-file.mp4',
    laterpayConnector: {
        video: {
            mode: 'sell-video', // This is the default value
            sellVideoOffset: 10
        }
    }
})

The example above creates a new JW Player instance, defines the mode “Sell Video” (which is the default) for Connector Script and sets the length of the visible teaser to 10 seconds. Viewers will be able to watch 10 seconds of the video before it stops and the Purchase Overlay appears.

Skip Ad Pre-Roll Offset

This property applies to mode “Skip Ad Pre-Roll” only. It defines a delay in seconds before the skip-ad button appears while an ad is playing.

This property is optional, it defaults to 2 (seconds).

Example for JW Player:

jwplayer('video-container').setup({
    file: 'video-file.mp4',
    laterpayConnector: {
        video: {
            mode: 'skip-ad-pre-roll',
            skipAdPreRollOffset: 0
        }
    }
})

The example above creates a new JW Player instance, defines the mode “Skip Ad Pre-Roll” for Connector Script and sets the delay for the skip-ad button to appear while an ad is playing to 0 seconds. The skip-ad button will appear right at the beginning of an ad.

Skip Ad Pre-Roll OneClick

This property applies to mode “Skip Ad Pre-Roll” only.

By default, when the user has clicked the skip-ad button, the Purchase Overlay which lists one or more purchase options is presented.

This property allows you to opt-in to a “OneClick” experience that redirects the viewers directly to the LaterPay purchase dialogs when they click on the skip-ad button.

Only one purchase option can be offered when “OneClick” is enabled. If multiple purchase options are available, the first one is selected.

This property is optional, it defaults to false.

Example for JW Player:

jwplayer('video-container').setup({
    file: 'video-file.mp4',
    laterpayConnector: {
        video: {
            mode: 'skip-ad-pre-roll',
            oneClick: true
        }
    }
})

The example above creates a new JW Player instance, defines the mode “Skip Ad Pre-Roll” for Connector Script and enables “OneClick”. When a viewer clicks on the skip-ad button, they will be redirected directly to the LaterPay purchase dialogs.