Your Digital Media Has Never Looked So Good

Search found 315 matches

by RokuKC
Fri Mar 20, 2015 10:59 am
Forum: Roku Developer Program
Topic: BuhByteArray
Replies: 25
Views: 3165

Re: BuhByteArray

GetByteArray returns pixels (color values), not JPEG data, so if your server is expecting to be passed a JPEG encoded data blob it isn't going to work. http://sdkdocs.roku.com/display/sdkdoc/ifDraw2D#ifDraw2D-GetByteArrayxasIntegeryasIntegerwidthasIntegerheightasIntegerasObject : ifDraw2D GetByteArr...
by RokuKC
Tue Mar 10, 2015 9:55 am
Forum: Roku Developer Program
Topic: component missing in legacy device
Replies: 4
Views: 1622

Re: component missing in legacy device

cpjamloki wrote:
...
when i am clicking on ifSetMessagePort option under roTexuremanager:
http://sdkdocs.roku.com/display/sdkdoc/roTextureManager
...


Thanks for the issue report. The link should be working now.
by RokuKC
Mon Mar 09, 2015 3:18 pm
Forum: Roku Developer Program
Topic: color convert
Replies: 24
Views: 4314

Re: color convert

At this point it is rather too hacky:

? "&h" + UCase(("000" + StrI(color >> 16, 16)).Right(4) + ("000" + StrI(color AND &hFFFF, 16)).Right(4))

But perhaps that would work. Sigh.
by RokuKC
Mon Mar 09, 2015 3:12 pm
Forum: Roku Developer Program
Topic: color convert
Replies: 24
Views: 4314

Re: color convert

Another case: varr.red = &h911820FF ? varr.red = -1860689665 color = -1860689665 ? "&h" + UCase(StrI(color, 16)) = &h-6EE7DF01 I seem to be missing something important here. Yes, I see you are right and the color spec string would need to be left-padded with "0"s. Bu...
by RokuKC
Mon Mar 09, 2015 1:25 pm
Forum: Roku Developer Program
Topic: Need help with custom text "line break" system
Replies: 8
Views: 4728

Re: Need help with custom text "line break" system

Is there a more natural way of including line breaks in my strings than inserting +Chr(10)+ ? If you are targeting firmware 6.1 or later, I would use roString Replace method to replace a placeholder string with the newline char. E.g. s = "this\nthat\nthose" s = s.replace("\n", c...
by RokuKC
Mon Mar 09, 2015 1:11 pm
Forum: Roku Developer Program
Topic: color convert
Replies: 24
Views: 4314

Re: color convert

On firmware 6.1 or later you can use StrI to format hexadecimal.

color = &h404040FF
? "&h" + UCase(StrI(color, 16))
by RokuKC
Fri Mar 06, 2015 10:45 am
Forum: Roku Developer Program
Topic: Reference count watch
Replies: 1
Views: 762

Re: Reference count watch

Currently there isn't any way to get or print object reference counts programmatically. In case it is helpful, e.g. for development leak monitoring, you can get a total object count from RunGarbageCollector(). Note that if you stop or break into the BrightScript debugger, there are some commands to ...
by RokuKC
Thu Mar 05, 2015 3:08 pm
Forum: Roku Developer Program
Topic: Reboot while setting uninitialized value in roAssociativeArr
Replies: 1
Views: 793

Re: Reboot while setting uninitialized value in roAssociativ

Thank you for the bug report, we'll look into it.
by RokuKC
Thu Mar 05, 2015 11:33 am
Forum: Roku Developer Program
Topic: Str(value as Float) as String sometimes inaccurate!
Replies: 11
Views: 2784

Re: Str(value as Float) as String sometimes inaccurate!

The values that were added up to make 8.6 are: 1, 2, 1, 0.1, 0.2, 0.2, 0.1, 1, 2, 1 So there is no fancy division or anything like that, should be exact and straightforward. 0.1 is not exactly representable in a floating point number, which internally uses a binary representation. https://docs.pyth...
by RokuKC
Wed Feb 04, 2015 7:50 pm
Forum: Roku Developer Program
Topic: When Roku's update disables dev mode --
Replies: 9
Views: 1754

Re: When Roku's update disables dev mode --

You could even 'hide it' in the roku/settings/about screen stating "firmware last updated at this time and date". That should be available to you. In firmware 5.x, in Settings > Software update it should show last checked and last updated date/times. In firmware 6.x, it is in Settings > S...
by RokuKC
Wed Feb 04, 2015 7:33 pm
Forum: Roku Developer Program
Topic: roDeviceInfo methods not working for me
Replies: 14
Views: 2223

Re: roDeviceInfo methods not working for me

I'm not sure if firmware version is the same as the software version that displays in the About option on the roku, but the software version is 5.6 build 60. These APIs are new with firmware version 6.1. It seems there has been a delay in the 6.1 rollout so the API documentation is premature. Apolo...
by RokuKC
Mon Feb 02, 2015 5:59 pm
Forum: Roku Developer Program
Topic: need sanity check on accessing Roku units from Android
Replies: 1
Views: 778

Re: need sanity check on accessing Roku units from Android

reichert wrote:
If I were to wildly speculate, I have to wonder if that my netblock
is different than any of the RFC1918 netblocks is a factor.


That is likely the issue. 198.175.*.* does not seem like it falls under the private network categorization.
by RokuKC
Tue Jan 27, 2015 2:08 pm
Forum: Roku Developer Program
Topic: Checking Type() is case sensitive - undocumented?
Replies: 33
Views: 5090

Re: Checking Type() is case sensitive - undocumented?

EDIT - This will work to check that it's either a String or a roString? Yes. It will work with all* string types in B/S. Note that there are components other than String / roString that implement the ifString interface. This may be academic in your case, but if your intent is to truly identify stri...
by RokuKC
Fri Jan 16, 2015 11:44 am
Forum: Roku Developer Program
Topic: BrightScript Reference minor error - no trailing space after
Replies: 1
Views: 532

Re: BrightScript Reference minor error - no trailing space a

Thanks for the report.

The documentation has been modified to state that (just) floating point numbers are printed with a trailing blank.

It is likely a bug from long ago that integers aren't printed with a trailing blank, but probably not something that should be changed at this point.
by RokuKC
Wed Dec 31, 2014 3:07 pm
Forum: Roku Developer Program
Topic: Serial Number -> Model
Replies: 2
Views: 6079

Re: Serial Number -> Model

The SSDP response includes a Location URL for the device description. You can then make an http request to download the device description which includes friendlyName, modelName, modelNumber, etc. http://sdkdocs.roku.com/display/sdkdoc/External+Control+Guide contains some relevant tips as well. Hope...