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: 
uarlive
Visitor

Capturing Actionable User Events in a Channel

Is there a way to collect events from a channel? For example, how many times a file was clicked or length of a play for a video?

Thanks
0 Kudos
4 REPLIES 4
TheEndless
Channel Surfer

Re: Capturing Actionable User Events in a Channel

If I understand what you're asking, why can't you collect that information in your code? You know when a video is launched, and you can monitor the notification period events during playback to determine how long it's played.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
uarlive
Visitor

Re: Capturing Actionable User Events in a Channel

That is what i am looking to do and send that information to a remote server for logging.
0 Kudos
TheEndless
Channel Surfer

Re: Capturing Actionable User Events in a Channel

Without seeing your code, it's hard to give exact details, but you should be able to capture a launch from the selection of the "Play" button on your springboard (or from the poster screen, if you're not using a springboard), at which point you could send an asynchronous web request (or synchronous, if you're not concerned about the delay it might cause) to your server to capture the data. Then, on your video screen, be sure to call SetNotificationPeriod(), and you can use the notification event to send additional web requests to your server to record playback time.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
uarlive
Visitor

Re: Capturing Actionable User Events in a Channel

Thank you Endless. I appreciate you pointing me in the right direction.
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.