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

Capture viewing time

Hi,
Right now we are able to get the list of videos been viewed, Is there a way to capture how long a particular video has been watched?

Basically looking to capture info like - 20 mins of 60 mins video was watched by user1, etc


Rgds,
Sunny
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: Capture viewing time

You can use the isPlaybackPosition event to keep track of where in a video the user is. Or if you want to capture the total amount of time the user spent in the video, including pause/FF/RW, you could use roTimespan.
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.