Roku Developer Program

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

How bad is it to save playback positionevery 30 sec?

I have seen an example (forget where)
that had set notification perdio of 30 secs then savein the registry the location
something like this:

else if msg.isPlaybackPosition() then
nowpos = msg.GetIndex()
if vidContent.bookmark_reg<>invalid
RegWrite("someid", nowpos.toStr())

My question is - presuming this save saved in flash and flash has limited life - how bad is saving this every 30 seconds vs using the
"isScreenClosed" as mentioned in

Presume that I wont actually get a notification of a closed screen if home button is pressed or crash - where
the 30 seconds save becomes beneficial
Private apps: IsraTV (replaces IsraIBA, IsraNews2, IsraI24, Isra10, Isra20)
Users - to report issues with the app (not content of streams please) send me a tweet - @quartern_roku and follow (so we can DM)
0 Kudos
1 REPLY 1\
Level 11

Re: How bad is it to save playback positionevery 30 sec?

See this thread for previous discussion on the subject:

I have been asking for years for "OnExit" kind of event - even went into minute details on the implementation to avoid "loopy" behavior,
see viewtopic.php?f=34&t=58576&start=30#p487482
0 Kudos