Your Digital Media Has Never Looked So Good

Search found 106 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 8
by sjb64
Wed Aug 12, 2015 2:27 pm
Forum: Roku Developer Program
Topic: Getting channel's ID, how? [answer: roAppInfo.getID()]
Replies: 9
Views: 2804

Re: Getting channel's ID, how? [answer: roAppInfo.getID()]

Even though I answered that question I never actually thought of doing that till you asked, now my statistics dashboard can distinguish between dev (sideloaded), testing, and production. Realized that once we got published knowing if I'm seeing a pattern or issue in test or in production was a huge ...
by sjb64
Wed Aug 12, 2015 10:51 am
Forum: Roku Developer Program
Topic: Preload or Lock in channels?
Replies: 3
Views: 985

Re: Preload or Lock in channels?

That's what I assumed, and would work great. Makes it a great device (the stick) to distribute for a app (financial, medical, etc. for example) that we don't want disassembled, reverse engineered, distributed, screen-shotted, or cut and pasted, and want to be able to disable via serial number for a ...
by sjb64
Wed Aug 12, 2015 10:37 am
Forum: Roku Developer Program
Topic: Preload or Lock in channels?
Replies: 3
Views: 985

Re: Preload or Lock in channels?

I've actually wondered the same thing, would have use for that for another project.
by sjb64
Tue Aug 11, 2015 5:51 am
Forum: Roku Developer Program
Topic: The number of app ratings went DOWN... how?
Replies: 13
Views: 1430

Re: The number of app ratings went DOWN... how?

Channels are tied to an account, not a specific box, so the serial number would never come into play. I know, I was using that just as a reference to their deletion policy, that if they followed the same mindset with channel deletion from an account, ratings would vanish. Could have worded it bette...
by sjb64
Mon Aug 10, 2015 2:06 pm
Forum: Roku Developer Program
Topic: The number of app ratings went DOWN... how?
Replies: 13
Views: 1430

Re: The number of app ratings went DOWN... how?

Roku has a pretty strongly worded rule against storing box serial numbers, so if a user deletes a channel, all information is deleted permanently from any storage, anywhere. If they are following that same rule deleting all information, and delete their account/app record, which it looks by the coun...
by sjb64
Mon Aug 10, 2015 9:24 am
Forum: Roku Developer Program
Topic: Getting channel's ID, how? [answer: roAppInfo.getID()]
Replies: 9
Views: 2804

Re: Getting channel's ID, how?

is roAppInfo's GetID() not what your looking for?
by sjb64
Fri Aug 07, 2015 7:39 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

Belltown's suggestion should fix that: There are too many significant digits to store in any of the Roku number types, but you can get the milliseconds value as a string: dt = CreateObject ("roDateTime") ms = dt.AsSeconds ().ToStr () + Right ("00" + dt.GetMilliseconds ().ToStr ()...
by sjb64
Fri Aug 07, 2015 7:02 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

I'd use an roDateTime to sent to the server, you shouldn't need MS for that, but if you do send seconds and MS as 2 fields if possible, or use the concatentation things from before to send to the server as a string, then use the roTimeSpan or roAppManager uptime to for the difference calculations.
by sjb64
Fri Aug 07, 2015 6:11 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

Use a rotimespan with it's Mark ability or roappmanagers uptime field , then your only using deltas from the app start in your calculation? The seconds would be smaller, and you could still pull datetime for display using the method Belltown showed. I don't know your exact needs, but could this work?
by sjb64
Fri Aug 07, 2015 5:40 am
Forum: Roku Developer Program
Topic: Brightscript logging and error handling
Replies: 8
Views: 1834

Re: Brightscript logging and error handling

On a Roku with the eval/run ability, Brightscript is executable code, so I think it would definitely be the target of that clause. I don't know if anyone at Roku actually unzips the package and looks at source code, either manually or by an automated system looking for triggers so see if clauses lik...
by sjb64
Thu Aug 06, 2015 11:09 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

Was too focused thinking about formatting that I didn't even think about the datetime functions, much better and simpler approach.
by sjb64
Thu Aug 06, 2015 9:48 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

Am curious, if you print timestamp many times in a row is it stable? I know it's a ridiculous thought but if timestamp was pointing to the function, not the result of the function, it would be fluid and changing as your code ran. Also, once this works, remember to pad part2 to 6 places with 0's on t...
by sjb64
Thu Aug 06, 2015 9:40 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

Am at a loss on that one, will play with it when I get a chance, but I don't have a clue why mod gives an incorrect answer. The error isn't a power of 2 so not an overflow issue I don't think, and totalmilliseconds is a 32 bit integer so we are within the limits and shouldn't be overflowing anyway. ...
by sjb64
Thu Aug 06, 2015 9:27 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

If I recall correctly, Str() adds a space for the sign position on positive numbers, tostr() does not, so switch to tostr() or use a trim function to clear the leading space.

Not sure why part 2 is coming up with a totally different number, i'll have to look at that a bit.
by sjb64
Thu Aug 06, 2015 8:34 am
Forum: Roku Developer Program
Topic: Timestamp in milliseconds
Replies: 26
Views: 3733

Re: Timestamp in milliseconds

An old trick from years ago when you don't have formatting abiltiies it to take (number/1,000,000 (as integer) as a string) + (number mod 1,000,000 as a string)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 8