Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
new Frequency.Player({
    config: {// optional
        basePath: '.'
    },
    session: {// mandatory
        'x-frequency-auth': '013ffaa2-a64e-4974-a9ee',
        'x-frequency-deviceid': '5680c4f2-e3fd'
    },
    adConfig: {// optional
        minBitrate: 100,// kbps
        maxBitrate: 5000,// kbps
        maxResolution: '720p',
        minResolution: '720p',
        deliveryFormat: 'progressive',// progressive / streaming
		deliveryProtocol: 'https',// http / https
		format: 'video/mp4'
    },
	controls: { // boolean or object [default: false]
    	player: { // boolean or object [default: true]
			// css: 'sample-link-to--player.css'
        },
		ads: { // boolean or object [default: true]
			// css: 'sample-link-to--adsplayer.css',
            strings: { // optional
	            VIDEO_WILL_START_SOON: 'Keep calm and watch the ad, video will start in [time_left]s...',
                SKIP_AD: 'Skip'
            }
        }
    },
	// Conviva configuration
	conviva: {
    	customer_key: "9e13c48fa88c05e31ab7488167c7bc9cb0d1413b",
	    gateway_url: "https://libertyglobal-test.testonly.conviva.com",
    	tags: {
        	tag1: "value 1",
	        tag2: "value 2"
    	}
	},
    video: "1234567",//optional
    autoplay: true, //optional default false
    events: {// optional
    	onStateChange(state) {
			...
		}  
    }
})

           

...