Skip to main content

Configuration

Lura Configuration

AttributeTypeDescriptionUpdatable
appKeystringAppKey generated in MCP based on the pre-adjusted play configurationNo
assetIdstringAssetId of the VOD or the Live StreamNo
tokenstring(Optional) When specified the provided token will be used in entitlements requests.No
const config = {
...
lura: {
appKey: "<YOUR_APP_KEY>",
assetId: "<ASSET_ID>",
token: "<OPTIONAL_TOKEN>"
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Controls Configuration

AttributeTypeDescriptionUpdatable
enabledbooleanEnable or disable the UI (Defaults to true)Yes
theme"Default"UI Theme of the Lura Player.Yes
platform"desktop" | "tv"The platform that the player is currently playing in.Yes
layout"default" | "tv" | "vertical"UI Layout of the Lura Player.Yes
autoplaybooleanAutoplay attribute of the player. Defaults to falseNo
mutedbooleanWhether to start muted when the player autoplays. Defaults to false.No
volumenumberInitial volume of the player between 0.0 and 1.0. Defaults to 1.0No
loopbooleanWhether the video should play in a loop. Defaults to falseNo
const config = {
...
controls: {
enabled: true,
theme: "Default",
platform: "desktop",
layout: "default",
autoplay: true,
muted: true,
volume: 1.0,
loop: false,
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Ads Configuration

Macros

In order to add macros, you need to encapsulate your macro string by square brackets in the URLs that you've provided.

url: "https://example.com/adtag?macro1=[MACRO1]&macro2=[MACRO2]";

After specifying the macros, in your URLs, you can specify them using macros attribute.

const config = {
...
ads: {
macros: {
USER_ID: "1234567890",
SESSION_ID: "078a54ef-c45e-4356-b556-a99fdab158c1",
},
clientSide: {
provider: "generic",
generic: {
breaks: [
{ url: "https://example.com/adtag?userid=[USER_ID]&session_id=[SESSION_ID]"},
{ url: "https://example.com/adtag?pal_nonce=[LURA_PAL_NONCE]&correlator=[LURA_CORRELATOR]"},
],
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Custom Macros

AttributeTypeDescriptionUpdatable
macrosObject<[key:string]: string>Your macros in key value pair as string.Yes
const config = {
...
ads: {
macros: {
USER_ID: "1234567890",
SESSION_ID: "078a54ef-c45e-4356-b556-a99fdab158c1",
},
clientSide: {
provider: "generic",
generic: {
breaks: [
{ url: "https://example.com/adtag?userid=[USER_ID]&session_id=[SESSION_ID]"},
{ url: "https://example.com/adtag?userid=[USER_ID]&session_id=[SESSION_ID]"},
],
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Reserved Macros

AttributeDescriptionUpdatable
LURA_PAL_NONCENonce generated by PAL SDK if PAL Plugin is configured and enabledNo
LURA_CORRELATORRandomly generated stringNo
const config = {
...
ads: {
clientSide: {
provider: "generic",
generic: {
breaks: [
{ url: "https://example.com/adtag?pal_nonce=[LURA_PAL_NONCE]&correlator=[LURA_CORRELATOR]"},
],
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Serverside Ads

AttributeTypeDescriptionUpdatable
providerstringServerside ad provider.No
const config = {
...
lura: {
appKey: "<APP_KEY_WITH_SSAI_ENABLED>",
assetId: "<ASSET_ID_YOU_WANT_TO_PLAY>"
}
ads: {
serverSide: {
provider: "lura",
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Clientside Ads

AttributeTypeDescriptionUpdatable
provider"generic" | "gam" | "freewheel"Provider of your client side adNo
genericObjectLuraPlayer Ad Manager managed ads configurationNo
gamObjectIMA SDK managed ads configurationNo
freewheelObjectFreeWheel managed ads configurationNo

Generic Configuration

AttributeTypeRequiredDescriptionUpdatable
breaksArray<{url: string, offset?: string | number}>yesAd breaks informationNo
breaks[i].urlstringyesURL of the VAST or VMAP Ad TagNo
breaks[i].offsetstring | numberonly if vast url is providedOffset of the VAST Ad Tag. The offset value can be provided in "preroll", "postroll", "NN%", "HH:MM:SS.mmm" and seconds as number format.No
info

LuraPlayer Ad Manager will assume that the entered URL is a VMAP URL if no offset is provided and will try to fetch the data from the provided URL. However, if the response is not a VMAP, LuraPlayer Ad Manager will ignore it.

const config = {
...
ads: {
clientSide: {
provider: "generic",
generic: {
breaks: [
{
// Ad will play before the content.
offset: "preroll",
url: "https://example.com/your_vast_url"
},
{
// Ad will play in the middle of the content.
offset: "50%",
url: "https://example.com/your_vast_url"
},
{
// Ad will play 1 minute 10 seconds from the beginning of the video.
offset: "00:01:10.000",
url: "https://example.com/your_vast_url"
},
{
// Ad will play 125 seconds from the beginning of the video.
offset: 125,
url: "https://example.com/your_vast_url"
},
{
// Ads will be aligned based on the time of the ads in the VMAP
url: "https://example.com/your_vmap_url"
},
{
// This will be ignored, since it is a VAST Url without an offset.
url: "https://example.com/your_vast_url"
}
],
}
}
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

GAM Configuration

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)No
adTagUrlstringNoAd Tag URL of the advertisement. (VAST, VPAID, VMAP, SIMID)No
liveStreamPrefetchSecondsnumberNoInform IMA about when the ad should start loading before the ad shows in live streams.No
const config = {
...
ads: {
clientSide: {
provider: "gam",
gam: {
enabled: true,
adTagUrl:
"https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=[LURA_CORRELATOR]",
}
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

FreeWheel Configuration

AttributeTypeDescriptionUpdatable
enabledbooleanEnable the plugin (Defaults to false if no value is given.)No
networkIdstringNetwork IdNo
serverUrlstringServer UrlNo
profileIdstringProfile IdNo
siteSectionIdstringSite Section IdNo
videoAssetIdstringVideo Asset IdNo
adSlotsArrayPositions for the ad slotsNo
adSlots.customIdstringCustom id for the ad slotsNo
adSlots.adUnit"preroll" | "midroll" | "postroll"Ad unit for the ad slotsNo
adSlots.timePositionnumberTime position for the ad slotsNo
adSlots.slotProfilestringSlot profile for the ad slotsNo
adSlots.cuepointSequencenumberCuepoint sequence for the ad slotsNo
adSlots.maxDurationnumberMax duration for the ad slotsNo
adSlots.minDurationnumberMin duration for the ad slotsNo
adSlots.acceptContentTypestringAccept content type for the ad slotsNo
adSlots.signalIdstringSignal id for the ad slotsNo
adSlots.maxAdsnumberMax ads for the ad slotsNo
keyValueMap{[key: string]: string}Key value map to be passed to the Freewheel SDKNo
parametersArray<{name: string, value: any, level: any}>Parameters to be passed to the Freewheel SDKNo
FreeWheel Configuration
const config = {
...
ads: {
clientSide:{
provider: "freewheel",
freewheel: {
enabled: true,
networkId: 42015,
serverUrl: "https://demo.v.fwmrm.net/ad/g/1",
profileId: "42015:js_allinone_profile",
videoAssetId: "js_allinone_demo_video",
siteSectionId: "js_allinone_demo_site_section",
adSlots: [
{ customId: "preroll1", adUnit: "preroll", timePosition: 0 },
{ customId: "midroll1", adUnit: "midroll", timePosition: 222 },
{ customId: "midroll2", adUnit: "midroll", timePosition: 444 },
{ customId: "midroll3", adUnit: "midroll", timePosition: 666 },
{ customId: "postroll1", adUnit: "postroll", timePosition: 888 },
],
},
},
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Non Linear Pause Ads

AttributeTypeDescriptionUpdatable
provider"generic"Provider of your client non linear adNo
genericObjectLuraPlayer Ad Manager managed non linear ads configurationNo
generic.urlstringURL for VAST tag that includes non linear adsNo
generic.xPosition"left" | "center" | "right"Horizontal display box position of the non linear adsNo
generic.yPosition"top" | "center" | "bottom"Vertical display box position of the non linear adsNo
generic.backgroundOpacitynumberBackground opacity of RGB(1,1,1) background when the ad is displayedNo
generic.slideAnimationObjectConfiguration object for the transition animation for the non linear adNo
generic.slideAnimation.enabledbooleanWhether the slide animation is enabled or notNo
generic.slideAnimation.direction"left" | "right" | "up" | "down"Direction for the slide animationNo
generic.slideAnimation.durationnumberDuration for the slide animation (in seconds)No
generic.paddingObjectConfiguration object for the padding for the non linear ad display areaNo
generic.padding.topstringTop padding in acceptable unitsNo
generic.padding.bottomstringBottom padding in acceptable unitsNo
generic.padding.leftstringLeft padding in acceptable unitsNo
generic.padding.rightstringRight padding in acceptable unitsNo
const config = {
...
ads: {
nonLinear: {
pause: {
provider: "generic";
generic: {
url: "VAST_AD_TAG_URL_WITH_NON_LINEAR_ADS";
xPosition: "right",
yPosition: "center",
backgroundOpacity: 0.6,
slideAnimation: {
enabled: true,
direction: "left",
duration: 0.6,
},
padding: {
right: "5%",
},
};
};
};
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Cast Configuration

Airplay Configuration

AttributeTypeOptionalDescriptionUpdatable
enabledbooleantrueWhether casting is enabled in available devices. (Defaults to false)Yes
const config = {
...
cast: {
airplay: {
enabled: true
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Chromecast Configuration

AttributeTypeOptionalDescriptionUpdatable
enabledbooleantrueWhether casting is enabled in available devices. (Defaults to false)Yes
appIdstringfalseChromecast receiver application ID.Yes
const config = {
...
cast: {
chromecast: {
enabled: true,
appId: "12345678"
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Name Configuration

const config = {
...
name: "lorem-ipsum-dolor-sit-amet",
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Content Configuration

caution

Providing a lura key will fill this field from MCP. You don't need to configure this part if you are using lura appKey and assetId. This part is only for manual media configuration and for overriding the data filled from mcp (e.g. title or description).

Title Configuration

AttributeTypeDescriptionUpdatable
titlestringTitle of the content.Yes
const config = {
...
content: {
title: "Title of the video"
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Description Configuration

AttributeTypeDescriptionUpdatable
descriptionstringDescription of the content.Yes
const config = {
...
content: {
description: "Lorem ipsum dolor sit amet, consectetur adespiscing elit"
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Language Configuration

AttributeTypeRequiredDescriptionUpdatable
languagestringnoLanguage of the content in ISO 639-1 formatYes
const config = {
...
content: {
language: "en"
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Start At Configuration

AttributeTypeDescriptionUpdatable
startAtnumberStarting position of the content in seconds.No
info

The startAt parameter is applicable exclusively to VOD (Video On Demand) assets and should not be utilized for live streams.

const config = {
...
content: {
startAt: 30
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Annotations Configuration

AttributeTypeRequiredDescription
startnumberyesStart time in seconds
endnumberyesEnd time in seconds
typestringyesType of the annotation
labelstringnoLabel of the annotation
const config = {
...
content: {
...
annotations: [
...
{
start: 0,
end: 10,
type: "intro"
}
...
],
...
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Media Source

AttributeTypeRequiredDescriptionUpdatable
urlstringyesContent URLNo
typestringyesMIME type of the contentNo
licenseUrlstringnoLicense URL of the content. (Only required for DRM Protected videos)No

Supported MIME types:

  • application/dash+xml - For DASH streams
  • application/x-mpegURL - For HLS streams
  • video/mp4 - For MP4 videos
const config = {
...
content: {
media: [
...
{
url: "https://media.example.com/hls.m3u8",
type: "application/x-mpegURL",
licenseUrl: "https://license.example.com"
},
{
url: "https://media.example.com/dash.mpd",
type: "application/dash+xml",
licenseUrl: "https://license.example.com"
},
{
url: "https://media.example.com/mp4.mp4",
type: "video/mp4",
licenseUrl: "https://license.example.com"
},
...
]
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

DRM Configuration

Widevine and Playready

AttributeTypeRequiredDescriptionUpdatable
licenseUrlstringyesLicense URL of the content.No
Widevine and Playready
const config = {
...
content: {
media: [
...
{
url: "YOUR_PROTECTED_MEDIA",
type: "application/dash+xml",
licenseUrl: "YOUR_DRM_LICENSE_SERVER_URL"
}
...
]
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

FairPlay

In media item:

AttributeTypeRequiredDescriptionUpdatable
licenseUrlstringyesLicense URL of the content.No

In clientCertificates:

AttributeTypeDescriptionUpdatable
datastringFairPlay certificate data.No
urlstringURL to download the FairPlay certificate data by GET request.No
FairPlay
const config = {
...
content: {
media: [
...
{
url: "YOUR_PROTECTED_MEDIA",
type: "application/x-mpegURL",
licenseUrl: "YOUR_DRM_LICENSE_SERVER_URL"
}
...
],
clientCertificates: {
fairplay: {
// You can either provide the certificate data
data: "YOUR_FAIRPLAY_CERTIFICATE_DATA",
// Or the URL to get the certificate data
url: "https://example.com/path/to/certificate/data"
}
}
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Preferred DRM Systems

AttributeTypeDescriptionUpdatable
preferredDRMSystemsArray<"widevine" | "fairplay" | "playready">Preferred DRM Systems.No

Sidecar Caption Configuration

AttributeTypeRequiredDescriptionUpdatable
urlstringyesURL of the caption that will be loadedNo
typestringyesMIME type of the captionNo
languagestringyesLanguage of the caption in ISO 639-1 formatNo

Supported MIME types:

  • text/vtt - Web Video Text Tracks Format (WebVTT)
  • text/plain - SubRip Text (SRT)
  • application/ttml+xml - Timed Text Markup Language (TTML)
  • application/ttaf+xml - Distribution Format Exchange Profile (DFXP)
  • application/smpte-tt+xml - Society of Motion Picture and Television Engineers - Timed Text (SMPTE-TT)
const config = {
...
content: {
media: [
...
{
url: "https://example.com/en.vtt",
type: "text/vtt",
language: "en"
},
{
url: "https://example.com/es.xml",
type: "application/ttml+xml",
language: "es"
},
...
]
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Poster Image Configuration

AttributeTypeRequiredDescriptionUpdatable
urlstringyesPoster URL of the content.No
typestringyesMIME type of the content.No
widthnumbernoWidth of the content (not required for single poster image)No
heightnumbernoHeight of the content (not required for single poster image)No

Supported MIME types:

  • image/jpg
  • image/jpeg
  • image/webp
  • image/apng
  • image/avif

const config = {
...
content: {
media: [
...
{
url: "https://picsum.photos/640/360",
type: "image/jpeg",
width: 640,
height: 360,
},
{
url: "https://picsum.photos/1920/1080",
type: "image/jpeg",
width: 1920,
height: 1080,
}
...
]
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Trick Play Configuration

AttributeTypeRequiredDescriptionUpdatable
urlstringyesTrick play URL of the content.No
typestringyesMIME type of the content.No
widthnumbernoWidth of the content (not required for single trick play image)No
heightnumbernoHeight of the content (not required for single trick play image)No

Supported MIME types:

  • image/bif

const config = {
...
content: {
media: [
...
{
url: "https://example.com/pvw.bif",
type: "image/bif",
width: 640,
height: 360,
},
{
url: "https://example.com/pvw2.bif",
type: "image/bif",
width: 1920,
height: 1080,
}
...
]
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Plugins

const config = {
...
plugins: {
...
PLUGIN_CONFIG_NAME: {
...
PLUGIN_PARAM : VALUE
...
}
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

PAL

info

To use PAL nonce, please use [LURA_PAL_NONCE] reserved macro in url's under the ads section.

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)No
allowStorageConsentbooleanNoWhether PAL has purpose 1 consent to use identifiers and storage. The value needs to be determined by integrating with CMP (Consent Management Provider). This is set to false by default. If specified as true, PAL has consent from the user to use information like cookies, device IDs and advertising IDs. This value needs to be set to be IAB TCFv2 (Transparency and Consent Framework) compliant. (Defaults to false)No
ppidstringNoThe publisher provided identifier. (Defaults to empty string)No
descriptionUrlstringNoThe description URL of the content during which the ad will be played. (Defaults to the url that the video is playing)No
Example
const config = {
...
plugins: {
pal: {
enabled: true,
allowStorageConsent: true,
ppid: "12DJD92J02KXVLS9D817DCJ078S8F1J2",
descriptionUrl: "https://docs4.lura.app/",
},
},
ads: {
...
clientSide:{
generic:{
breaks: [
{
url: "https://example.com?pal_nonce=[LURA_PAL_NONCE]"
}
]
}
}
...
}
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Conviva

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)No
customerKeystringYesConviva customer key, it can be test or production key.No
gatewayUrlstringNoService URL of your conviva touchstone gateway. Don't fill this parameter in production.No
viewerIdstringNoViewer ID of the session, if you don't fill this parameter, it will be filled automatically.No
contentInfoObject<[key: string]: string>NoThe metadata to be sent to the conviva dashboard for current session.Yes
deviceMetadataObject<[key: string]: string>NoDevice metadata to be sent to the conviva for current session.No
const config = {
...
plugins: {
...
conviva: {
enabled: true,
customerKey: "CUSTOMER_KEY",
gatewayUrl: "https://test.conviva.com",
viewerId: "test-viewer",
contentInfo: {
...
key: "value",
...
},
deviceMetadata: {
...
key: "value",
...
},
},
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Nielsen

AttributeTypeRequiredDescription
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)
appIdstringYesUnique ID assigned to the player/site and configured by product provided by Nielsen
initializationObject<[key: string]: string>NoThe initialization parameters of the Nielsen SDK.
metadataObject<[key: string]: string>NoThe metadata to be sent to the Nielsen.
const config = {
...
plugins: {
...
nielsen: {
enabled: true,
appId: "APP_ID_PROVIDED_BY_NIELSEN",
initialization: {
...
key: "value",
...
},
metadata: {
...
key: "value",
...
}
},
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Adobe Media Analytics

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanNoEnable the plugin (Defaults to false if no value is given.)No
appIdstringYesApplication id used for configuration.No
griffonUrlstringNoURL needed for starting assurance and inspect collected data on assurance serverNo
marketingCloudIdstringYesMarketing Cloud ID for getting the visitor.No
publisherIdstringYesID of the publisher.No
trackingServerstringYesAppMeasurement tracking serverNo
mediaTrackingServerstringYesMedia collection server endpoint to which all the media tracking data is sentNo
channelstringYesChannel nameNo
userIdstringYesUser/Account ID to get app measurement instance.No
pageNamestringYesName of the page.No
playerNamestringNoName of the media player in use (defaults to Lura Player)No
debugLoggingbooleanNoA boolean to enable debug mode on adobe media analytics sdkNo
contentInfoobjectNoInformation related to contentNo
contentInfo.namestringYesName of the currently playing contentNo
contentInfo.idstringYesID of the currently playing contentNo
contentInfo.lengthnumberYesLength of the currently playing content in secondsNo
contentInfo.streamType"vod" | "live"YesType of the streamNo
contentInfo.mediaType"video" | "audio"YesType of the mediaNo
contextData{[key: string] : string}NoMetadata that will be passed to adobe media analyticsNo
const config = {
...
plugins: {
...
adobeMediaAnalytics?: {
enabled?: true;
// For mobile sdks
appId?: "APP_ID";
griffonUrl?: "GRIFFON_URL";
// For web sdk
marketingCloudId?: "MARKETING_CLOUD_ID";
publisherId?: "PUBLISHER_ID";
trackingServer?: "TRACKING_SERVER";
mediaTrackingServer?: "MEDIA_TRACKING_SERVER";
channel?: "CHANNEL";
userId?: "USER_ID";
pageName?: "PAGE_NAME";
playerName?: "PLAYER_NAME";
// For both
debugLogging?: false;
contentInfo?: {
name: "NAME";
id: "ID";
length: 0;
streamType: "STREAM_TYPE";
mediaType: "MEDIA_TYPE";
};
contextData: {
[key: string]: string;
};
};
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Comscore

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)No
publisherIdstringYesProvide your Publisher ID value. The Publisher ID is often also referred to as the Client ID or c2 value.No
publisherSecretstringNoProvide a string with your Publisher Secret value.No
userHasConsentbooleanNoIf you are using a Consent Management Platform (CMP) which implements iAB Transparency and Consent Framework (TCF) version 2.0 then Comscore Publisher Tag integrates with the CMP to automatically collect user consent. No additional steps are necessary to enable this integration, however if you are not using a Consent Management Platform, you can manually ask user for consent and give here.No
appNamestringNoTitle of the page that your video is playing. (Defaults to HTML title tag.)No
autoUpdateMode"FOREGROUND_ONLY" | "FOREGROUND_AND_BACKGROUND" | "DISABLED"NoThis setting controls if the library will update application usage times at a regular interval. (Defaults to FOREGROUND_ONLY)No
autoUpdateIntervalnumberNoThe interval in seconds at which the library automatically updates usage times if the auto-update is enabled. (Defaults to 60, which is also the minimum value.)No
metadataObject<[key: string]: string>NoMetadata to be sent to comscore.Yes
const config = {
...
plugins: {
...
comscore: {
enabled: true,
publisherId: "PUBLISHER_ID_PROVIDED_BY_COMSCORE",
publisherSecret: "PUBLISHER_SECRET_PROVIDED_BY_COMSCORE",
userHasConsent: true,
appName: "Lura Player Included Application",
autoUpdateMode: "FOREGROUND_ONLY",
autoUpdateInterval: 60,
metadata: {
key: "value"
}
},
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Open Measurement

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanYesEnable the plugin (Defaults to false if no value is given.)No
const config = {
...
plugins: {
...
openMeasurement: {
enabled: true,
},
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Oracle Moat

AttributeTypeRequiredDescriptionUpdatable
enabledbooleanNoEnable the plugin (Defaults to false if no value is given.)No
partnerCodestringNoPartner codeNo
const config = {
...
plugins: {
...
moat: {
enabled: true,
partnerCode: "samplepartnercode123"
}
...
},
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);

Debug Configuration

AttributeTypeRequiredDescriptionUpdatable
debugbooleanNoEnable the debug mode (Defaults to false if no value is given.)No
const config = {
...
debug: true,
...
};
const player = new lura.Player(document.getElementById("player"));
player.setConfig(config);