Browser SDK API Table

From Engineering Client Portal

Revision as of 14:21, 5 May 2023 by NickParrucci (talk | contribs) (Created page with "== Browser SDK API Methods & Properties Table == {| class="wikitable sortable" |- ! Method / Property !! Event # !! DTVR !! DAR !! DCR !! Description |- | loadMetadata (Brow...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Browser SDK API Methods & Properties Table

Method / Property Event # DTVR DAR DCR Description
loadMetadata (Browser) 15 Used when there is a preroll ad that needs to be associated with content metadata. The loadMetadata will first be called to populate the content metadata values and then the loadMetadata for ad metadata will be called. This allows sending a content ping with the ad info, even if the user bails out during the preroll ad.
play (Browser) 5 Used when there is an ID3 fed product such as DTVR and the client does not want to send in all the CMS metadata that is sent in loadMetadata. This allows the client to send in at least the required “channel name” value associated to the ID3 feed. When the client passes in the channelName, they can change the CMS data stored by passing new values. If this event is not called then the “channel name” value populated will be the default value of “defaultChannelName”.
sendID3 (Browser) 55 Used to send the ID3 metadata.
setPlayheadPosition (Browser) 49 Used to send the playhead position.
stop (Browser) 7 Used when switching between ad and content or content and ad.
end (Browser) 57 This is triggered 1) at the end of the content stream, 2) if the user switches to another piece of content 3) when the browser is refreshed or closed
staticstart (Browser) 14 Used to send the metadata for the static page.
updateOTT (Browser) - Used to notify Browser SDK that the remote OTT device (like Google ChromeCast, Roku, Amazon FireTV, etc.) is connected / disconnected (change of OTT status).
onPaginate (Browser) 30 Used to create a new instance of the SDK object
updateMetadata (Browser) 35 This event is used for updating metadata parameters for the content or ad that is being played.
setVolume (Browser) 61 Used to pass in the player volume levels in % (applicable to Audibility feature only). Default value is -1.