VAST calculation method

Definition Vast-Request

https://sitename.tns-cs.net/j0=,,,;+,event=start+stream=streampath+mobid=%%ADVERTISING_IDENTIFIER_PLAIN%%+cq=%%VIDEO_ID%%+ct=%%DEVICE_TYPE%%+dur=%%VIDEO_DURATION%%+uid=%%CACHEBUSTER%%;;;” https://sitename.tns-cs.net/j0=,,,;+,event=firstQuartile+stream=streampath+mobid=%%ADVERTISING_IDENTIFIER_PLAIN%%+cq=%%VIDEO_ID%%+ct=%%DEVICE_TYPE%%+dur=%%VIDEO_DURATION%%+uid=%%CACHEBUSTER%%;;;” https://sitename.tns-cs.net/j0=,,,;+,event=midpoint+stream=streampath+mobid=%%ADVERTISING_IDENTIFIER_PLAIN%%+cq=%%VIDEO_ID%%+ct=%%DEVICE_TYPE%%+dur=%%VIDEO_DURATION%%+uid=%%CACHEBUSTER%%;;;” https://sitename.tns-cs.net/j0=,,,;+,event=thirdQuartile+stream=streampath+mobid=%%ADVERTISING_IDENTIFIER_PLAIN%%+cq=%%VIDEO_ID%%+ct=%%DEVICE_TYPE%%+dur=%%VIDEO_DURATION%%+uid=%%CACHEBUSTER%%;;;” https://sitename.tns-cs.net/j0=,,,;+,event=complete+stream=streampath+mobid=%%ADVERTISING_IDENTIFIER_PLAIN%%+cq=%%VIDEO_ID%%+ct=%%DEVICE_TYPE%%+dur=%%VIDEO_DURATION%%+uid=%%CACHEBUSTER%%;;;”

For the emedia-output we use the latest event (“start”, …, “complete”) coming into the system and calculate the playtime in relation to the “event (event)” and the “duration (dur)”

Playtime (pt) calculation

It needs to be defined in the beginning of the VAST-project if “dur” will be delivered by the broadcasters in seconds or millisseconds for the emedia-output

event

calculation

event

calculation

start

pt = Math.round(stream.dur * 0.12)

firstQuartile

pt = Math.round(stream.dur * 0.37)

midpoint

pt = Math.round(stream.dur * 0.62)

thirdQuartile

pt = Math.round(stream.dur * 0.87)

complete

pt = Math.round(stream.dur * 1.0)