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

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:


video.SetPositionNotificationPeriod(30)
...
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 https://sdkdocs.roku.com/display/sdkdoc/Fast+Video+Start

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
EnTerr
Roku Guru

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

See this thread for previous discussion on the subject:
viewtopic.php?f=34&t=70199&p=443020#p443039

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
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.