Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

How to set up event tracking in RAF

Hi Guys,

I am using the RAF to render a preroll ads. however , I found both the tracking roArrays returned by my url and the Roku default ad server is always null, then I can I track those events like adStart , e.t.c?

Here is the VAST response I get from server , but when the tracking array is still null

<VAST xmlns:xsi="" version="2.0" xsi:noNamespaceSchemaLocation="oxml.xsd">
<Ad id="a776590">
<AdSystem version="1.0"></AdSystem>
<![CDATA[ 00:00:15 ]]>
<Tracking event="start">...</Tracking>
<Tracking event="firstQuartile">...</Tracking>
<Tracking event="firstQuartile">...</Tracking>
<Tracking event="midpoint">...</Tracking>
<Tracking event="thirdQuartile">...</Tracking>
<Tracking event="complete">...</Tracking>
<Tracking event="acceptInvitation">...</Tracking>
<Tracking event="pause">...</Tracking>
<Tracking event="resume">...</Tracking>
<AdParameters id="adaptv">
<MediaFile delivery="progressive" width="1920" height="1080" bitrate="2895" type="video/mp4">
0 Kudos
Level 7

Re: How to set up event tracking in RAF

Another question is ,

How can I listen to the ads playback event in my main thread?

Any help appreciated !
0 Kudos