"destruk" wrote:
The problem with that is if the user fast forwards, or rewinds to their favorite scene, it will misreport the time.
What you could do - increase the server traffic, set playback position notification to 1 second and every second (or another set minimum interval the roku would have to keep track of) have it send data to the server to indicate that second was actually played.
I'd suggest using an roTimespan to track the seconds played. Fast forwards and rewinds trigger the isPaused event, so you could capture the total seconds on pause, and Mark() the timespan on isResumed/isStreamStarted. That should give pretty accurate viewing times.
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)