Namespace

stat_video

stat_video

YouTube Videos Manager

Members

static h5

HTML5 Videos Hhanler

Methods

static addVideo(vf)

Add one video in the list

Parameters:
Name Type Description
vf string

Video frame

static close()

Force video stop

static createPlayer(id, i)

Create video player

Parameters:
Name Type Description
id string

Video frame identifier

i number

index in list

static getSelector()

get Youtube Selector

static getTheme()

Get video theme, possibly customized

static getThemeNc()

Get video theme, not customized

static init(fp, reinit)

Initialize video tracking

Parameters:
Name Type Description
fp string

Final path, as computed for level2 mapping

reinit boolean

Force reinitialization

static initCompletion()

Complete initialisation with new videos added in page

static initVideo(vf, index) → {boolean}

Single video initialisatoin

Parameters:
Name Type Description
vf string

Video frame

index number

Index

true if this id is already tracked as video

boolean

static isId(id) → {boolean}

Check if an id is already tracked

Parameters:
Name Type Description
id string

Id to check

true if this id is already tracked as video

boolean

static load()

Load video tracking

static onPlayerStateChange(event)

Event triggered on each video status change

Parameters:
Name Type Description
event object

Youtube event

static onReady()

Event triggered once video API loaded

static reInit()

Clean all status

static send(A, B, C, E, D, F, G, H, J, K, L, M, N, event)

Send Rich media tag to ATI

Parameters:
Name Type Description
A string

Compulsory - content type ("video", "audio" or "vpost" for the measurement of post-roll videos). The content type must be concatenated to the variable "&plyr=", which contains the ID of the reader that is currently being used (refer to the example below). The variable "&plyr=" is optional but must be added when several readers are used, the aim of this is to distinguish between the hits that are received by the different readers.

B string

Level 2 site in which the content is placed.

C string

Compulsory - content label (use "::" if necessary) or post-roll advertisement label (in this case do not use the "::"). The label which is used for a post-roll advertisement must be concatenated to the variable "&clnk=". The "&clnk=" variable needs to resume the video content that the advertisement is linked to (refer to the example below).

E string

Not used

D string

Compulsory - action (predefined ID)

F string

Refresh count duration (optional and measured in seconds, but necessary to calculate detailed durations). This is a fixed duration, and a minimum interval value of 5 seconds applies.

G string

Compulsory (except if D is different from "play" or if L = "Live"):Total content duration is measured in seconds (to be left empty if L="live"). Must be less than 86400.

H string

Information relating to the position of the playcount ("rmp", "rmpf" and "rmbufp"), measured in seconds. These three variables, which are to be concatenated, need to be entered as follows: "rmp=0&rmpf=0&rmbufp=0" (0 is the default value). - rmp (rich media position): position of the read head. This value must be updated for each action (variable D). - rmpf (rich media position from): the starting position of the read head along the playback bar. This value must be updated for each action (if variable D="move"). - rmbufp (rich media buffer cache position: the position of the cache's progress bar which is present in the content. This value must be updated for each action (variable D)

J string

Feed ID

K string

Location ("int" or "ext").

L string

Broadcast ("live" or "clip"). If L is empty the method which is taken into consideration for broadcasting is "clip".

M string

Content size (integer in Kb, leave empty if L="live").

N string

Content format (ID predefined by you).

event string

Youtube event

static waitRefresh()

Wait for new videos