setLogLevel

Method: setLogLevel Set the logLevel of a FreeWheel HTML5 SDK. By default the logLevel is tv.freewheel.SDK.LOG_LEVEL_INFO

setLogLevel(logLevel: Number)
Parameters
logLevel (Number) must be one of:
  • <tv.freewheel.SDK.LOG_LEVEL_QUIET>
  • <tv.freewheel.SDK.LOG_LEVEL_INFO>
  • <tv.freewheel.SDK.LOG_LEVEL_DEBUG>
Example
tv.freewheel.SDK.setLogLevel(tv.freewheel.SDK.LOG_LEVEL_DEBUG);

disableConsentAutoRetrieval

Method: disableConsentAutoRetrieval Disables execution of consent protocol (USP, TCF, GPP) logic. This method must be called before instantiating AdManager for it to take effect.

disableConsentAutoRetrieval()
Example
tv.freewheel.SDK.disableConsentAutoRetrieval();

AdManager

Class: AdManager

Namespace: tv.freewheel.SDK

AdManager()
Example
var theAdManager = new tv.freewheel.SDK.AdManager();
Instance Members
setNetwork(networkId)
setServer(serverUrl)
setLocation(location)
getOMSDKLibraryVersion()
getOMSDKPartnerVersion()
newContext()
newContextWithContext(context)
enableTopics()
dispose()

Context

Class: Context An Context instance represents context of an ad request, which is capable of making ad request, parsing response and rendering ads.

Namespace: tv.freewheel.SDK

Context()
Instance Members
addRenderer(url, baseUnit, contentType, slotType, soAdUnit, creativeApi, parameters)
setCapability(capability, status)
addKeyValue(key, value)
setParameter(name, value, level)
getParameter(name)
setVideoState(videoState)
getAdVolume()
setAdVolume(adVolume)
registerVideoDisplayBase(id)
setContentVideoElement(id)
resize(width, height)
setVideoDisplayCompatibleSizes(compatibleDimensions)
setProfile(playerProfile)
setVideoAsset(id, duration, networkId, location, autoPlayType, videoViewRandom, idType, fallbackId, durationType)
setVideoAssetCurrentTimePosition(timePosition)
setSiteSection(id, networkId, pageViewRandom, idType, fallbackId)
setVisitor(customId, ipV4Address)
startSubsession(subsessionToken)
setRequestMode(mode)
setRequestDuration(duration, mode)
addCandidateAd(id)
addTemporalSlot(customId, adUnit, timePosition, slotProfile, cuepointSequence, maxDuration, minDuration, acceptContentType, signalId, maxAds)
getTemporalSlots()
getSlotByCustomId(customId)
getSlotsByTimePositionClass(timePositionClass)
submitRequest(timeoutSeconds)
addEventListener(event, listener)
removeEventListener(event, listener)
dispose()
loadExtension(ExtensionUrl)
registerCustomPlayer(customPlayer)
setAiringStartTimeAndBreakSequence(airingStartTime, breakSequence)
displaySubtitles(enabled)

AdListener

Class: AdListener Used in integrations that utilize the CustomPlayerRenderer. Provides methods the custom player can call to notify AdManager when ad playback has completed, or encountered an error. An instance of this class is passed to the client's custom player by the CustomPlayerRenderer in custom player's open method.

Namespace: tv.freewheel.SDK

AdListener()
Instance Members
onEnded()
getClickThroughUrls()
onError(errorMessage)

Slot

Class: Slot

Namespace: tv.freewheel.SDK

Slot()
Instance Members
getCustomId(Custom)
getAdCount()
getTimePosition()
getEndTimePosition()
getTimePositionClass()
getWidth()
getHeight()
getBase()
getSignalId()
play()
stop()
pause()
resume()
getParameter(name)
setParameter(name, value)
getTotalDuration()
getPlayheadTime()
getAdInstances()
setVisible(visible)
skipCurrentAd()

AdInstance

Class: AdInstance

Namespace: tv.freewheel.SDK

AdInstance()
Instance Members
getAdId()
getParameter(name)
getUniversalAdId()
getSoAdUnit()
getActiveCreativeRendition()
addCreativeRendition()
getAllCreativeRenditions()
getRenderableCreativeRenditions()
setActiveCreativeRendition(creativeRendition)
getEventCallbackUrls(name, type)
addEventCallbackUrls(name, type, urls)
setClickThroughUrl(name, url)
getSlot()
getCompanionAdInstances()
isRequiredToShow()
getRendererController()
getPlayheadTime()
getDealId()
getOpenExchangeId()
getMarketUnifiedAdId()
getAction()
getSkipOffset()
isFallbackAd()
getIcons()
getAllExtensions()
getExtensionsByType(type)
getDuration()

CreativeRendition

Class: CreativeRendition

Namespace: tv.freewheel.SDK

CreativeRendition()
Instance Members
getContentType()
setContentType(value)
getWrapperType()
setWrapperType(value)
getWrapperUrl()
setWrapperUrl(value)
getBaseUnit()
getPreference()
setPreference(value)
getWidth()
setWidth(value)
getHeight()
setHeight(value)
getDuration()
setDuration(value)
getParameter(name)
setParameter(name, value)
addCreativeRenditionAsset(name, isPrimary)
getPrimaryCreativeRenditionAsset()
getOtherCreativeRenditionAssets()
getCreativeApi()
getAdSkippableState()

CreativeRenditionAsset

Class: CreativeRenditionAsset

Namespace: tv.freewheel.SDK

CreativeRenditionAsset()
Instance Members
getName()
setName(value)
getUrl()
setUrl(value)
getContent()
setContent(value)
getContentType()
setContentType(value)
getMimeType()
setMimeType(value)
getBytes()
setBytes(value)

Renderer

Interface: Renderer Renderer interface to be implemented.

Renderer()
Instance Members
start(rendererController)
stop()
pause()
resume()
info()
getPlayheadTime()
getDuration()
resize()
setVolume(volume)

RendererController

Class: RendererController RendererController acts as a bridge between AdManager and a renderer.

Namespace: tv.freewheel.SDK

RendererController()
Instance Members
processEvent(event)
handleStateTransition(rendererStateEvent, additionalInfo)
setCapability(eventCapability, status)
getVersion()
getParameter(name)
getAdInstance()
getCompanionSlots()
scheduleAdInstances(slots)
commitAdInstances()
log(msg)
getContentVideoElement()

Extension

Class: Extension Extension class provides methods to implement Extension Modules

Namespace: tv.freewheel.SDK

Extension()
Instance Members
init(AdContext)
dispose()

Translator

Interface: Translator Translator interface to be implemented.

Namespace: tv.freewheel.SDK

Translator()
Instance Members
start(rendererController)
info()

Constant

Namespace: tv.freewheel.SDK

Constant

Constant: ADUNIT_PREROLL

Type of ad unit: preroll.

Constant: ADUNIT_MIDROLL

Type of ad unit: midroll.

Constant: ADUNIT_POSTROLL

Type of ad unit: postroll.

Constant: ADUNIT_OVERLAY

Type of ad unit: overlay.

Constant: ADUNIT_STREAM_PREROLL

Type of ad unit: preroll of a live stream.

Constant: ADUNIT_STREAM_POSTROLL

Type of ad unit: postroll of a live stream.

Constant: ADUNIT_PAUSE_MIDROLL

Type of ad unit: midroll ad that is displayed when content video is paused.

Constant: TIME_POSITION_CLASS_PREROLL

Constant: TIME_POSITION_CLASS_MIDROLL

Constant: TIME_POSITION_CLASS_POSTROLL

Constant: TIME_POSITION_CLASS_OVERLAY

Constant: TIME_POSITION_CLASS_DISPLAY

Constant: PARAMETER_ENABLE_FORM_TRANSPORT

Whether or not to send request and ping callbacks by submitting forms.

This parameter needs to be set before submitting the request.

Default value: false.

Example
//Enable form submitting
theContext.setParameter(tv.freewheel.SDK.PARAMETER_ENABLE_FORM_TRANSPORT, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_ENABLE_JS_TRANSPORT

Whether or not to send request and ping callbacks using XMLHttpRequest.

This parameter needs to be set before submitting the request.

Default value: false.

Example
//Enable JS transport
theContext.setParameter(tv.freewheel.SDK.PARAMETER_ENABLE_JS_TRANSPORT, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_ENABLE_ACCESS_CONTROL_ALLOW_CREDENTIALS

Whether or not to send request and ping callbacks with credentials flag.

XMLHttpRequest from a different domain cannot set cookie values for their own domain unless withCredentials is set to true.

More detail: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials#:~:text=The%20XMLHttpRequest.,effect%20on%20same%2Dsite%20requests.

Default value: false.

Example
//Enable JS transport
theContext.setParameter(tv.freewheel.SDK.PARAMETER_ENABLE_ACCESS_CONTROL_ALLOW_CREDENTIALS, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: URL_PARAMETER_KEY_FWU_TOPIC

The key for manually setting the topics key/value in the Ad Request URL.

The value associated with this key should be a string in the following format: 'version1:topic1,version2:topic2,version3:topic3'.

When manually setting the value, adManager.enableTopics() should not be called. If adManager.enableTopics() is called when manually setting this key/value, AdManager will ignore adManager.enableTopics() and populate the key/value pair with the value provided by the client.

Related
AdManager.enableTopics()
Example
// Manually add topics key/value to the Ad Request URL
const topicsString = topics.map(t => t.version + ':' + t.topic).join(',');
theContext.addKeyValue(tv.freewheel.SDK.URL_PARAMETER_KEY_FWU_TOPIC, topicsString);

Constant: PARAMETER_DESIRED_BITRATE

Desired bitrate (user bandwidth) set by player. Once set, the value will be used in video ad renderer for rendition selection.

The value should be in kbps. This parameter should be set on level PARAMETER_LEVEL_OVERRIDE.

Example
// Suppose user bandwidth is 500kbps:
theContext.setParameter(tv.freewheel.SDK.PARAMETER_DESIRED_BITRATE, 500, tv.freewheel.SDK.PARAMETER_LEVEL_OVERRIDE);

Constant: PARAMETER_PAGE_SLOT_CONTENT_TYPE

The parameter to configure primary content type of scanned page slot. Note that this parameter only can set in player side. When using two or more content type, make sure they are separated by commas.

Default value is 'text/html_doc_lit_mobile,text/html_doc_ref'. Optional content type:

  • text/html_doc_lit_mobile
  • text/html_doc_ref
  • text/html_lit_js_wc_nw
Example
// Suppose use 'text/html_doc_lit_mobile' and 'text/html_doc_ref':
theContext.setParameter(tv.freewheel.SDK.PARAMETER_PAGE_SLOT_CONTENT_TYPE, 'text/html_doc_lit_mobile,text/html_doc_ref',tv.freewheel.SDK.PARAMETER_LEVEL_OVERRIDE);

Constant: PARAMETER_EXTENSION_AD_CONTROL_CLICK_ELEMENT

The parameter to config which element AdManager would listen and process click event on.

  • If the parameter is set, JSAM would process click event on the set element, and disable the click listening on the ad element.
  • If the parameter is not set or set to an undetectable element, JSAM will listen click event with the default way(listening on the ad element).
Example
//Config AdManager to process click event on an existing element with id 'Element_Click_Target'
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_AD_CONTROL_CLICK_ELEMENT, 'Element_Click_Target', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED

The boolean value to control whether the JSAM or player should listen and handle <EVENT_CONTENT_VIDEO_*> events.

  • If this value is true, adManager will have one content video extension to listen and handle the <EVENT_CONTENT_VIDEO_*> events.
  • If this value is false, player will take the responsibility to listen and handle the <EVENT_CONTENT__VIDEO_*> events, i.e., relative events listening and handling logic are implemented on player side.

Default value is true.

Example
//Disable the content video extension, player will handle all the EVENT_CONTENT_VIDEO_* events.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_PAUSE_AD_ENABLE

The boolean value to control whether the AdManager should handle PAUSE_MIDROLL slots.

  • If this value is true, AdManager will have one pause ad extension to handle playing PAUSE_MIDROLL slots.
  • If this value is false, AdManager will not handle playing PAUSE_MIDROLL slots.

Default value is true.

Example
//Disable pause ad extension
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_PAUSE_AD_ENABLE, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ENABLE

The boolean value to control whether the AdManager should enable the QRCodeExtension.

  • If this value is true, AdManager will enable the QRCodeExtension. When enabled, the extension will render a QR code to the video's display base that will point to the ad's clickthrough URL.
  • If this value is false, AdManager will not enable the QRCodeExtension.

Default value is false.

Example
//Enable qrcode extension
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ENABLED, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ELEMENT_ID The id of an element which will hold the QR code for the QRCodeExtension.

  • If the parameter is set, the QRCodeExtension will use this element to render the QR code.
  • If the parameter is not set or set to an undetectable element, the QRCodeExtension will add the QR code to the video's display base.
Example
//Config the QRCodeExtension to render the QR code in an existing element with id, i.e. 'QR_Code_Element_Id'
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ELEMENT_ID, 'QR_Code_Element_Id', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ELEMENT_CLASS A string that the QRCodeExtension should use for the QR code element className.

  • If the parameter is set, the QRCodeExtension will use this string as the QR code element className.
  • If the parameter is not set, the QRCodeExtension will use the default styling.
Example
//Config the QRCodeExtension to render the QR code in an existing class with id, i.e. 'QR_Code_Element_Class'
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ELEMENT_CLASS, 'QR_Code_Element_Class', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ELEMENT_LIGHT_HEX_COLOR A string that the QRCodeExtension should use for the light color of the QR code.

  • If the parameter is set, the QRCodeExtension will use this string as the light color of the QR code.
  • If the parameter is not set, the QRCodeExtension will use the default light color of '#ffffff'.
  • The light color should be a valid hex color string, e.g. '#ffffff' for white.
Example
//Config the QRCodeExtension to use '#ffffff' as the light color of the QR code.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ELEMENT_LIGHT_HEX_COLOR, '#ffffff', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ELEMENT_DARK_HEX_COLOR A string that the QRCodeExtension should use for the dark color of the QR code.

  • If the parameter is set, the QRCodeExtension will use this string as the dark color of the QR code.
  • If the parameter is not set, the QRCodeExtension will use the default dark color of '#000000'.
  • The dark color should be a valid hex color string, e.g. '#000000' for black.
Example
//Config the QRCodeExtension to use '#000000' as the dark color of the QR code.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ELEMENT_DARK_HEX_COLOR, '#000000', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_QRCODE_ERROR_CORRECTION_LEVEL A string that the QRCodeExtension should use for the error correction level of the QR code.

  • If the parameter is set, the QRCodeExtension will use this string as the error correction level of the QR code.
  • If the parameter is not set, the QRCodeExtension will use the default error correction level of 'Q'.
  • The error correction level should be one of the following values: 'L', 'M', 'Q', 'H'.
Example
//Config the QRCodeExtension to use 'H' as the error correction level of the QR code.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_QRCODE_ERROR_CORRECTION_LEVEL, 'H', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_OMSDK_ENABLED

The boolean value to control whether the AdManager should enable the OMSDK extension.

  • If this value is true, AdManager will load the OMSDK service script and session script to the video display base and enable OMSDK extension for Web Video.
  • If this value is false, AdManager will neither enable the OMSDK extension for Web Video, nor load the OMSDK service script and session script to the video display base.

Default value is false.

Example
//Enable the OMSDK extension
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_OMSDK_ENABLED, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_SKIPPABLE_AD_ENABLED

The boolean value to control whether AdManager should enable the SkippableAdExtension.

  • If this value is true, AdManager will enable the SkippableAdExtension.
  • The SkippableAdExtension will display a skip button for VAST Linear Skippable Ads with a valid skipoffset value.
  • The button will be disabled when first displayed, and the button will display a countdown.
  • When the ad playback reaches the skipoffset, the SkippableAdExtension will enable the button, allowing the viewer to skip the ad.
  • If this value is false, AdManager will not enable the SkippableAdExtension.

Default value is false.

Example
//Enable the SkippableAdExtension
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_SKIPPABLE_AD_ENABLED, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_SKIPPABLE_AD_CONTROL_CLICK_ELEMENT

The ID of an element that the SkippableAdExtension should use for the skip button.

  • If the parameter is set, the SkippableAdExtension will use this element as the skip button.
  • If the parameter is not set or set to an undetectable element, the SkippableAdExtension will create a button to use as the skip button.

Whether set or not, the SkippableAdExtension will hide the skip button, and only display it when a VAST Linear Skippable Ad is being played. The SkippableAdExtension will also disable the button and only enable it when the skippable state for the ad is true.

Example
//Config the SkippableAdExtension to process click event on an existing element with id 'Skip_Button_Element_Id'
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_SKIPPABLE_AD_CONTROL_CLICK_ELEMENT, 'Skip_Button_Element_Id', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_SKIPPABLE_AD_BUTTON_TEXT

A string that the SkippableAdExtension should use for the skip button text.

  • If the parameter is set, the SkippableAdExtension will use this string as the skip button, when skip is enabled.
  • If the parameter is not, the SkippableAdExtension will use the default text of 'Skip Ad'.

This parameter can be used both when using the default skip button, as well as a custom skip button.

Example
//Config the SkippableAdExtension to display 'Custom Button Text' on the skip button.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_SKIPPABLE_AD_BUTTON_TEXT, 'Custom Button Text', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_SKIPPABLE_AD_BUTTON_CLASS

A string that the SkippableAdExtension should use for the skip button className.

  • If the parameter is set, the SkippableAdExtension will use this string as the skip button className.
  • If the parameter is not set, the SkippableAdExtension will use the default styling for the skip button.

This parameter only works when the default skip button is used. If PARAMETER_EXTENSION_SKIPPABLE_AD_CONTROL_CLICK_ELEMENT is set, this parameter will have no effect.

Example
//Config the SkippableAdExtension to set the default skip button className to 'CssClass1 CssClass2',
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_SKIPPABLE_AD_BUTTON_CLASS, 'CssClass1 CssClass2', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_CONTENT_VIDEO_AUTO_SEEK_BACK

The boolean value to control whether JSAM will auto seek back after midroll on iPad.

On iPad 3.2 and above, when user clickthroughs on midroll video ad and return, content video will lost all the playback state. In this case, when midroll playback completes, content video will restart from the beginning, rather than resuming at the previous pause point. To improve User Experience, JSAM implements this logic for iPad:

  • After midroll, automatically seeking back to the previous pause point if the content video starts over.

This parameter is the boolean value to control whether this auto seeking logic would be enabled.

Default value is true.

Example
//Disable the auto seeking back logic.
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_CONTENT_VIDEO_AUTO_SEEK_BACK, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_START_DETECT_TIMEOUT

The timeout in milliseconds for VideoRenderer.

VideoRenderer will timeout if ad playback does not successfully start.

Default value is 5000 milliseconds.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_START_DETECT_TIMEOUT, 5000, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_VAST_TIMEOUT_IN_MILLISECONDS

The timeout in milliseconds for VAST Translator to load VAST url.

Translator will timeout if the target VAST url does not respond.

Default value is 5000 milliseconds.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_VAST_TIMEOUT_IN_MILLISECONDS , 10000, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_PROGRESS_DETECT_TIMEOUT

The timeout in milliseconds for VideoRenderer, CustomPlayerRenderer and DashRenderer to detect video ad progress timeout.

VideoRenderer, CustomPlayerRenderer and DashRenderer will timeout if ad playback progress stalls after playback starts.

Default value is 8000 milliseconds.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_PROGRESS_DETECT_TIMEOUT , 10000, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_DISPLAY_CONTROLS_WHEN_PAUSE

The boolean value to control whether ad video element's default controls should be displayed when pause.

When playing video ad, pause event may be fired by click through or some other reason. Then user should be granted the capability to resume ad playback after pause.

By setting this parameter to false, player is notifying VideoRenderer not to display default controls when pause. So player should add some custom controls for user to resume in this case.

Default value is true.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_DISPLAY_CONTROLS_WHEN_PAUSE, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_EXTENSION_SURVEY_ENABLED

The boolean value to control whether SurveyExtension should be enabled.

When an ad starts play, SurveyExtension will check the ad's creative to see if it has the survey url to pingback. If yes, SurveyExtension will append the survey url as script link to the page's head element.

By setting this parameter to false, SurveyExtension won't pingback the survey url no matter it exists or not.

Default value is true.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_SURVEY_ENABLED, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_DISPLAY_COAD_SCRIPT_NAME

The js function name to render HTML content for display ad.

The js function must exist on Client's page.

Constant: PARAMETER_EXTENSION_VIDEO_STATE_ENABLED

Used to enable the VideoStateExtension. If set to true, the VideoStateExtension will set the video state to "PLAYING" and the video view callback will be sent after the ad request completes. That means the first video view callback is sent before preroll ads play.

Valid values: true, false

Required: No

Default value: false

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_EXTENSION_VIDEO_STATE_ENABLED, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_ANDROID_DELAY

Delay in milliseconds between video load and play when using Android browser.

Valid values: Integer

Required: No

Default value: 100

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_ANDROID_DELAY, 500, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_CLICK_DETECTION

Controls whether the VideoRenderer will process or ignore clicks on the advertisement. When set to false, VideoRenderer will ignore clicks. Allows a player development team to implement their own click handling instead of letting AdManager do this for them.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_CLICK_DETECTION, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_VIDEO_PLAY_AFTER_STALLED

When set to true, VideoRenderer will try to continue playing ad when stalled event is dispatched by video element.

Valid values: true, false

Required: No

Default value: false

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_VIDEO_PLAY_AFTER_STALLED, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_AUTO_PAUSE_AD_ONVISIBILITYCHANGE

Controls whether the ad will automatically pause when the browser window goes out of focus. When set to false, this parameter will turn off the auto pause feature.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_AUTO_PAUSE_AD_ONVISIBILITYCHANGE, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_DISABLE_CORS_ENFORCEMENT

Controls whether CORS enforcement is disabled for VPAID creatives. Set to false to require CORS enforcement.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_DISABLE_CORS_ENFORCEMENT, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_SHOULD_BACKGROUND_TRANSPARENT

Provides functionality to control the background transparency settings of nontemporal display ads rendered within the application.

Valid values: "YES", "NO"

Required: No

Default value: "NO"

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_SHOULD_BACKGROUND_TRANSPARENT, "YES", tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_RENDER_IMAGE_WITHOUT_IFRAME

When set to true, ads with content type image/jpeg, image/gif, image/bmp, and image/png will be rendered without an iFrame by the HTMLRenderer

Valid values: true, false

Required: No

Default value: false

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_RENDER_IMAGE_WITHOUT_IFRAME , true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_SHOULD_END_AFTER_DURATION

Controls if overlay ads will end when the creative duration time is reached.

Valid values: true, false

Required: No

Default value: False when slot type is display. True for other slot types.

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_SHOULD_END_AFTER_DURATION, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_AD_LOAD_TIMEOUT

The timeout in seconds for HTMLRenderer. HTMLRenderer will timeout if the ad does not load in time.

Valid values: Unsigned integer

Required: No

Default value: 5 seconds

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_AD_LOAD_TIMEOUT, 10, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_PRIMARY_ANCHOR

Sets the primary anchor for overlay ads. Valid values: 'tc', 'bc', 'ml', 'mr', 'tl', 'tr', 'bl', 'br'

  • 't' means 'top'
  • 'l' means 'left'
  • 'b' means 'bottom'
  • 'r' means 'right'
  • 'c' means 'center'
  • 'm' means 'middle'

Required: No

Default value: 'bc'

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_PRIMARY_ANCHOR, 'tc', tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_MARGIN_WIDTH

Sets the X axis margin offset to the primary anchor for overlay ads.

Valid values: Unsigned integer

Required: No

Default value: 0

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_MARGIN_WIDTH, 5, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_RENDERER_HTML_MARGIN_HEIGHT

Sets the Y axis margin offset to the primary anchor for overlay ads.

Valid values: Unsigned integer

Required: No

Default value: 0

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_RENDERER_HTML_MARGIN_HEIGHT, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_VPAID_CREATIVE_TIMEOUT_DELAY

The timeout in milliseconds for VPAIDRenderer. VPAIDRRenderer will timeout if the VPAID creative does not load in time.

Valid values: Unsigned integer

Required: No

Default value: 10000

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_VPAID_CREATIVE_TIMEOUT_DELAY, 5000, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_VAST_MAX_WRAPPER_COUNT

Sets the maximum limit of vast wrappers. VastTranslator will fail if too many wrapper responses have been recieved with no Inline response.

Valid values: Unsigned integer

Required: No

Default value: 5

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_VAST_MAX_WRAPPER_COUNT, 10, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_VAST_ASYNC_LOAD

If set to true, VastTranslator will asynchronously load VAST url

Valid values: true, false

Required: No

Default value: false

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_VAST_ASYNC_LOAD, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_VAST_LOAD_WITH_COOKIE

If set is true, VastTranslator will load VAST creative with cookies

Valid values: true, false

Required: No

Default value: false

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_VAST_LOAD_WITH_COOKIE, true, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_USE_GDPR_TCFAPI

Parameter to control whether AdManager should retrieve GDPR consent data from the IAB TCF/CMP API v2.0.

Beginning with 6.34.0, AdManager will not be compatible with TCF/CMP API 1.0 and 1.1.

Clients need to update to TCF/CMP API 2.0 if using AdManager version 6.34.0 or later.

JS AdManager versions 6.28.0 - 6.33.0 will only support TCF/CMP API 1.0 and 1.1.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_USE_GDPR_TCFAPI, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_USE_CCPA_USPAPI

Parameter to control whether AdManager should retrieve CCPA consent data from the IAB USP API.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_USE_CCPA_USPAPI, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_USE_GPP

Parameter to control whether AdManager should retrieve GPP consent data from the IAB GPP CMP API.

Valid values: true, false

Required: No

Default value: true

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_USE_GPP, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_CONSENT_RETRIEVAL_TIMEOUT

The timeout in milliseconds to wait for a response from the CMP/TCF API, USP API, and GPP API before submitting an ad request.

This timeout is separate from the ad request timeout.

Should be a multiple of 100.

If one or more of <PARAMETER_USE_GDPR_TCFAPI>, <PARAMETER_USE_CCPA_USPAPI> and <PARAMETER_USE_GPP> is set to true, AdManager will wait for a response from the corresponding consent API.

If <PARAMETER_USE_GDPR_TCFAPI>, <PARAMETER_USE_CCPA_USPAPI> and <PARAMETER_USE_GPP> are all set to false, this value will have no effect, and AdManager will not wait for a response.

Valid values: Unsigned integer, multiple of 100

Required: No

Default value: 500

Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_CONSENT_RETRIEVAL_TIMEOUT, 100, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_SIMID_FULL_SCREEN_ALLOWED

Sets whether SIMID creatives may request to enter full screen mode

Valid values: true, false

Required: No

Default value: true
Example
theContext.setParameter(tv.freewheel.SDK.PARAMETER_SIMID_FULL_SCREEN_ALLOWED, false, tv.freewheel.SDK.PARAMETER_LEVEL_GLOBAL);

Constant: PARAMETER_LEVEL_PROFILE

Constant: PARAMETER_LEVEL_GLOBAL

Constant: PARAMETER_LEVEL_OVERRIDE

Constant: CAPABILITY_STATUS_OFF

Constant: CAPABILITY_STATUS_ON

Constant: CAPABILITY_SLOT_TEMPLATE

Player expects template-based slots generated by ad server.

Constant: CAPABILITY_MULTIPLE_CREATIVE_RENDITIONS

Player expects multiple creative renditions for an ad.

Constant: CAPABILITY_RECORD_VIDEO_VIEW

When set, one video view event will be recorded by the ad server for each ad request, and AdManager will not fire video view callbacks.

Constant: CAPABILITY_CHECK_COMPANION

Player expects ad server to check companion for candidate ads.

Constant: CAPABILITY_CHECK_TARGETING

Player expects ad server to check targeting for candidate ads.

Constant: CAPABILITY_RESET_EXCLUSIVITY

Player reset the exclusivity scope. Player can turn on/off this capability before making any request.

Constant: CAPABILITY_REQUIRE_ADVANCED_CALLBACK

Player expects ad server to return IAB callbacks besides impressions.

Only one of CAPABILITY_REQUIRE_ADVANCED_CALLBACK, CAPABILITY_REQUIRE_QUARTILE_CALLBACK, CAPABILITY_REQUIRE_COMPLETE_CALLBACK should be set.

If two or three appear together, only the last one will work.

Constant: CAPABILITY_REQUIRE_QUARTILE_CALLBACK

Player expects ad server to return IAB quartile callbacks besides impression.

Similar as CAPABILITY_REQUIRE_ADVANCED_CALLBACK but only ask for quartile callbacks and doesn't ask for other IAB callback URLs.

Only one of CAPABILITY_REQUIRE_ADVANCED_CALLBACK, CAPABILITY_REQUIRE_QUARTILE_CALLBACK, CAPABILITY_REQUIRE_COMPLETE_CALLBACK should be set. If two or three appear together, only the last one will work.

Constant: CAPABILITY_REQUIRE_COMPLETE_CALLBACK

Player expects ad server to return complete callbacks besides impression.

Need to turn on for UEX by count ad view on ad completion.

Only one of CAPABILITY_REQUIRE_ADVANCED_CALLBACK, CAPABILITY_REQUIRE_QUARTILE_CALLBACK, CAPABILITY_REQUIRE_COMPLETE_CALLBACK should be set. If two or three appear together, only the last one will work.

Constant: CAPABILITY_DISABLE_TRACKING_REDIRECT

Player adds 'dtrd' flag to the ad request and uses the first trackingURL as the clickThrough URL.

Constant: EVENT_REQUEST_COMPLETE

Type of AdManager event: an ad request is complete, either success or failure.

A player MUST respond to this event.

Event Parameters:

  • type - EVENT_REQUEST_COMPLETE
  • target - the target context object.
  • success - true if success, false otherwise.

Constant: EVENT_SLOT_STARTED

Type of AdManager event: a slot starts.

Event Parameters:

  • type - EVENT_SLOT_STARTED
  • target - the target context object.
  • slot - the target slot.

Constant: EVENT_SLOT_ENDED

Type of AdManager event: a slot ends.

Event Parameters:

  • type - EVENT_SLOT_ENDED
  • target - the target context object.
  • slot - the target slot.

Constant: EVENT_ERROR

Event name: Ad error. Broadcasted with the type RENDERER_EVENT when there's any error.

Constant: EVENT_RESELLER_NO_AD

Event name: reseller no ad. Broadcasted with the type RENDERER_EVENT when FreeWheel fails to get any playable ad from a reseller.

Constant: EVENT_AD

Type of an IAB ad event.

Event Parameters: subType - the name of the renderer event, must be one of the following:

  • <EVENT_AD_PREINIT>
  • <EVENT_AD_IMPRESSION>
  • <EVENT_AD_IMPRESSION_END>
  • <EVENT_AD_CLICK>
  • <EVENT_AD_FIRST_QUARTILE>
  • <EVENT_AD_MIDPOINT>
  • <EVENT_AD_THIRD_QUARTILE>
  • <EVENT_AD_COMPLETE>
  • <EVENT_AD_MUTE>
  • <EVENT_AD_UNMUTE>
  • <EVENT_AD_PAUSE>
  • <EVENT_AD_RESUME>
  • <EVENT_AD_REWIND>
  • <EVENT_AD_EXPAND>
  • <EVENT_AD_COLLAPSE>
  • <EVENT_AD_MINIMIZE>
  • <EVENT_AD_ACCEPT_INVITATION>
  • <EVENT_AD_CLOSE>
  • <EVENT_AD_SKIPPED>
  • <EVENT_AD_PROGRESS>
  • <EVENT_ERROR>
  • <EVENT_RESELLER_NO_AD> adInstance - the target ad. slot - the target slot.

Constant: EVENT_AD_PREINIT

Type of AdManager event: a Renderer has been loaded for an AdInstance, and will start playback attempt.

Please note, PREINIT is not dispatched when replaying a slot (or the adInstance in it).

Event Parameters:

  • subType - EVENT_AD_PREINIT
  • target - the target context object.
  • adInstance - the target ad.

Constant: EVENT_AD_IMPRESSION

Type of AdManager event: an ad starts.

Event Parameters:

  • subType - EVENT_AD_IMPRESSION
  • target - the target context object.
  • adInstance - the target ad.

Constant: EVENT_AD_IMPRESSION_END

Type of AdManager event: an ad ends.

Event Parameters:

  • subType - EVENT_AD_IMPRESSION_END
  • target - the target context object.
  • adInstance - the target ad.

Constant: EVENT_AD_VOLUME_CHANGE

AdManager Event: ad volume has changed.

Event Parameters:

  • target - the Context object that dispatched this event.
  • adInstance - the adInstance whose volume has been changed.
  • slot - the slot that contains the aforementioned adInstance.

Constant: EVENT_AD_SKIPPABLE_STATE_CHANGED

Type of AdManager event: notifies that the ad is skippable when the current playhead time passes the skipoffset time. This will not fire if no skipoffset is provided.

Event Parameters:

  • subType - EVENT_AD_SKIPPABLE_STATE_CHANGED
  • target - the target context object.
  • adInstance - the target ad.

Constant: EVENT_AD_FIRST_QUARTILE

Event name: Ad first quartile.

Constant: EVENT_AD_MIDPOINT

Event name: Ad midpoint.

Constant: EVENT_AD_THIRD_QUARTILE

Event name: Ad third quartile.

Constant: EVENT_AD_COMPLETE

Event name: Ad complete.

Constant: EVENT_AD_CLICK

Event name: Ad click.

Constant: EVENT_AD_MUTE

Event name: Ad mute.

Constant: EVENT_AD_UNMUTE

Event name: Ad unmute.

Constant: EVENT_AD_COLLAPSE

Event name: Ad collapse.

Constant: EVENT_AD_EXPAND

Event name: Ad expand.

Constant: EVENT_AD_PAUSE Event name: Ad pause.

Constant: EVENT_AD_RESUME

Event name: Ad resume.

Constant: EVENT_AD_REWIND

Event name: Ad rewind.

Constant: EVENT_AD_ACCEPT_INVITATION

Event name: Ad accept invitation.

Constant: EVENT_AD_CLOSE

Event name: Ad close.

Constant: EVENT_AD_SKIPPED

Event name: Ad skipped.

This event is fired when an ad is skipped as a result of calling Slot.skipCurrentAd(), or when a VPAID ad is skipped using logic implemented by the creative.

For VPAID ads, please note the following behavior:

  • If the VPAID implements skip functionality, AdManager will only call the VPAID skipAd() method if AdSkippableState is true. If AdSkippableState is false, AdManager will listen for AdSkippableState change events, and call skipAd() once the AdSkippableState is true.
  • If Slot.skipCurrentAd is called before the VPAID creative has loaded, AdManager will skip the ad, regardless of whether or not the VPAID implements skip functionality.

Constant: EVENT_AD_PROGRESS

Event name: Ad progress. VPAID advertisements do not support this event.

Constant: EVENT_AD_MINIMIZE

Event name: Ad minimize.

Constant: EVENT_AD_MEASUREMENT

Event name: Ad Concrete event.

Constant: EVENT_CONTENT_VIDEO_PAUSE_REQUEST

Type of AdManager event: adManager is requesting to pause content video.

This event is added to facilitate the communication between adManager and player on the playback control of content video.

Defaultly(<PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED> is true), adManager will have one content video extension to listen on this event. When extension receives this event, it will hide and pause the content video.

If player want to listen and handle this event by itself, player MUST set <PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED> to false and implements player-side event handler to pause and hide content video.

Event Parameters: type - EVENT_CONTENT_VIDEO_PAUSE_REQUEST

Constant: EVENT_CONTENT_VIDEO_RESUME_REQUEST

Type of AdManager event: adManager is requesting to resume content video playback.

This event is added to facilitate the communication between adManager and player on the playback control of content video.

Defaultly(<PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED> is true), adManager will have one content video extension to listen on this event. When extension receives this event, it will resume and show the content video.

If player want to listen and handle this event by itself, player MUST set <PARAMETER_EXTENSION_CONTENT_VIDEO_ENABLED> to false and implements player-side event handler to resume and show content video.

Event Parameters: type - EVENT_CONTENT_VIDEO_RESUME_REQUEST

Constant: ID_TYPE_FW

Type of id: a unique id provided by FreeWheel.

Constant: ID_TYPE_CUSTOM

Type of id: a custom id provided by non-FreeWheel parties.

Constant: ID_TYPE_GROUP

Type of id: a unique group id provided by FreeWheel.

Constant: VIDEO_STATE_PLAYING

Current video is playing.

Constant: VIDEO_STATE_PAUSED

Current video is paused.

Constant: VIDEO_STATE_STOPPED

Current video has stopped.

Constant: VIDEO_STATE_COMPLETED

Current video has completed playing.

Constant: VIDEO_ASSET_AUTO_PLAY_TYPE_ATTENDED

Video asset auto play type: attended.

Constant: VIDEO_ASSET_AUTO_PLAY_TYPE_UNATTENDED

Video asset auto play type: unattended.

Constant: VIDEO_ASSET_AUTO_PLAY_TYPE_NONE

Video asset auto play type: non auto play.

Constant: VIDEO_ASSET_AUTO_PLAY_TYPE_CLICK_TO_PLAY

Video asset auto play type: click to play.

Constant: VIDEO_ASSET_DURATION_TYPE_EXACT

Video asset duration type: exact.

Constant: VIDEO_ASSET_DURATION_TYPE_VARIABLE

Video asset duration type: variable.

Constant: REQUEST_MODE_ON_DEMAND

Request mode: on-demand.

Constant: REQUEST_MODE_LIVE

Request mode: live.

Constant: RENDERER_STATE_STARTED

Constant: RENDERER_STATE_COMPLETED

Constant: RENDERER_STATE_FAILED

Constant: EVENT_TYPE_CLICK_TRACKING

Constant: EVENT_TYPE_IMPRESSION

Constant: EVENT_TYPE_CLICK

Constant: EVENT_TYPE_STANDARD

Constant: EVENT_AD_QUARTILE

Constant: EVENT_AD_FIRST_QUARTILE

Constant: EVENT_AD_MIDPOINT

Constant: EVENT_AD_THIRD_QUARTILE

Constant: EVENT_AD_COMPLETE

Constant: EVENT_AD_IMPRESSION

Constant: EVENT_AD_CLICK

Constant: EVENT_AD_MUTE

Constant: EVENT_AD_UNMUTE

Constant: EVENT_AD_COLLAPSE

Constant: EVENT_AD_EXPAND

Constant: EVENT_AD_PAUSE

Constant: EVENT_AD_RESUME

Constant: EVENT_AD_REWIND

Constant: EVENT_AD_ACCEPT_INVITATION

Constant: EVENT_AD_CLOSE

Constant: EVENT_AD_MINIMIZE

Constant: EVENT_AD_MEASUREMENT

Constant: EVENT_VIDEO_DISPLAY_BASE_CHANGED

An event sent when the video display base has changed.

Constant: EVENT_USER_ACTION_NOTIFIED

Used to notify AdManager of a user action

Example
var event = {
action: tv.freewheel.SDK.EVENT_USER_ACTION_PAUSE_BUTTON_CLICKED
};
theContext.dispatchEvent(tv.freewheel.SDK.EVENT_USER_ACTION_NOTIFIED, event);

Constant: EVENT_USER_ACTION_PAUSE_BUTTON_CLICKED

Used to notify AdManager that the user paused the content video. This will trigger the PauseAdExtension to start a PAUSE_MIDROLL slot.

Constant: EVENT_USER_ACTION_RESUME_BUTTON_CLICKED

Used to notify AdManager that the user resumed the content video. This will trigger the PauseAdExtension to stop a PAUSE_MIDROLL slot.

Constant: INFO_KEY_ERROR_CODE

Constant: INFO_KEY_ERROR_INFO

Constant: INFO_KEY_SHOW_BROWSER

Constant: INFO_KEY_CONCRETE_EVENT_ID

Constant: INFO_KEY_AD_SKIPPABLE_STATE

Gets the boolean value associated with whether the skippable state has changed.

Constant: INFO_KEY_CUSTOM_EVENT_NAME

Constant: MODULE_TYPE_EXTENSION

Constant: MODULE_TYPE_RENDERER

Constant: MODULE_TYPE_TRANSLATOR

Constant: ERROR_IO

Constant: ERROR_TIMEOUT

Constant: ERROR_NULL_ASSET

Constant: ERROR_UNKNOWN

Constant: ERROR_MISSING_PARAMETER

Constant: ERROR_NO_AD_AVAILABLE

Constant: ERROR_PARSE

Constant: ERROR_INVALID_VALUE

Constant: ERROR_INVALID_SLOT

Constant: ERROR_3P_COMPONENT

Constant: ERROR_UNSUPPORTED_3P_FEATURE

Constant: ERROR_SECURITY

Constant: ERROR_UNMATCHED_SLOT_SIZE

Constant: ERROR_DASHJS

Constant: ERROR_HLSJS

This is used by VideoRenderer to report errors that were triggered by hls.js. Information on the errors can be found in the hls.js documentation - https://nochev.github.io/hls.js/docs/html/variable/index.html#static-variable-ErrorTypes

Constant: ERROR_CUSTOM_PLAYER

This is a default error type for Javascript CustomPlayerRenderer to report errors that were found in CustomPlayerRenderer. When the CustomPlayer goes wrong, client app can trigger this error by using adListener.onError("Error message").

Constant: TRANSLATOR_STATE_STARTED

Constant: TRANSLATOR_STATE_COMPLETING

Constant: TRANSLATOR_STATE_COMPLETED

Constant: TRANSLATOR_STATE_FAILED