Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
andysmith1965
Streaming Star

Expected behaviour for roInputEvent during Ad Play

Hi

What would be the expected behaviour for deep linking using roInputEvent while the ads are playing.

Incidentally, getting this output

RAF.err] wrapMsg() unrecognized type: got roInputEvent, expected roSGNodeEvent|roVideoPlayerEvent|roVideoScreenEvent|roAssociativeArray


Regards

Andy

0 Kudos
4 REPLIES 4
RokuJonathanD
Community Moderator
Community Moderator

Re: Expected behaviour for roInputEvent during Ad Play

Hi @andysmith1965,

When a deep link request is received during an ad break  (for the same or different content), the channel should attempt to initiate an ad break to preserve the previously exited ad experience.

You can try this using the Deep Linking sample in the master sample channel and the Deep Linking Tester tool.

0 Kudos
andysmith1965
Streaming Star

Re: Expected behaviour for roInputEvent during Ad Play

Thanks for the quick reply. I was attempting to stop the ad, but without success.  

Should this be possible, or am I doing something wrong?

0 Kudos
RokuJonathanD
Community Moderator
Community Moderator

Re: Expected behaviour for roInputEvent during Ad Play

You can take a look at the Deep Linking UI logic file in the Deep Linking sample channel in the master sample for logic that can be used...I think in the sample's case, it exits all the screens upon receiving an roInput event. 

0 Kudos
andysmith1965
Streaming Star

Re: Expected behaviour for roInputEvent during Ad Play

Thanks for the quick response.

Actually deep linking has already been implemented. 

What I am finding it hard to achieve is stopping an ad while it is playing. If I use the remote control back button, then the ad stops correctly and the player screen closes as expected. However, I cannot seem to achieve this programmatically.

Using the standard rendering call..
exitAd = not m.RAF.showAds(adPods.ads.preroll, invalid, m.view)

Even removing the renderable node doesn't stop the ad from playing.

What am I doing wrong?
Any help appreciated.


 

  

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.