Step by step integration

Integration

Install the Retinad package in by running npm install retinad or by downloading it from Github and adding it to the dependencies of the web project.

Configuration

In the index.html of the project, add the following function and fill in the App ID and Account Key that has been sent by Retinad.

(function(){
    // Initialise Player
    var player = videojs( '#video-container', {
        techOrder: ['html5']
    });

    //Initialise Retinad Plugin with AppID and AccountKey
    player.retinad({
        "appId": "APP_ID_HERE",
        "accountKey": "ACCOUNT_KEY_HERE"
    });
})();

Don't have an App ID or Account Key? Send a quick email to support@retinadvr.com


How to use

Behavior

Each video is treated as what we call a context.
The name of the context refers to the source of the video.