Roku Developer Program

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

RAF ad events - How to properly handle RAF ad events in channel.

Can anyone show me example how to properly handle Ad events triggered by RAF? ieg. how to pass evtType and ctx to the rest of the app?!

0 Kudos
1 REPLY 1\
RokuJonathanD
Roku Employee
Roku Employee

Re: RAF ad events - How to properly handle RAF ad events in channel.

Hi @Momchilos,

You can take a look at our Master Sample channel on GitHub for a great example of how to integrate RAF in your channel. The sample is here: https://github.com/rokudev/scenegraph-master-sample/tree/master/VideoAds. This sample uses client-side ad stitching for the implementation. 

You can also look at samples demonstrating how to implement RAF via client-side ad insertion (CSAI) and server-side ad insertion (SSAI) implementations here: https://github.com/rokudev/samples/tree/master/advertising.

 

 

 

0 Kudos