Active settings for rtl-player

Self

BASE_URL: https://player.rtl.nl

APIs

XL_API_BASE_URL: https://xlapi.rtl.nl
RTL_API_BASE_URL: https://api.rtl.nl

Adobe

ADOBE_ANALYTICS_RSID: rtlproduction

Conviva

CONVIVA_CUSTOMER_KEY: 2cc9bcd87e4511a3759bc9299721d1609b726e59
CONVIVA_GATEWAY_URL:
CONVIVA_DEBUG_ENABLED:
CONVIVA_ENABLED:

Quickstart

Insert the script into your page head

        
    <script src="https://player.rtl.nl/index.js" type="text/javascript"></script>
        
    

Write a player into the DOM.

        
    const result = rtlPlayer.writePlayer('--uid--', DomElement, {
        poster:'https://screenshots.rtl.nl/screenshot/l/720x404/--uid--',
        publicationPoint: 'rtlnl',
        autoplay: false,
        embed: true,
        startPosition: 90,
        authorization: {
            type: 'Bearer',
            token: '--token--',
            gigya: {
                uid: '--uid--',
                sig: '--signature--',
                ts: '--timestamp--'
            }
        },
        events: {
            playing: ({data, player}) => {},
            paused: ({data, player}) => {},
            ended: ({data, player}) => {},
            adStarted: ({data, player}) => {},
            adFinished: ({data, player}) => {},
            licenseFailed: ({data, player}) => {},
            heartbeat: ({data, player}) => {}
        }
    });

    if (result.isSuccess()) {
        const player = result.success();

        // Jump to 1800 seconds (30min)
        player.seek(1800);

        // Remove the player
        player.dispose();
    }

    if (result.isFail()) {
        const error = result.fail();
    }