Your Digital Media Has Never Looked So Good

Search found 315 matches

by RokuKC
Thu Dec 04, 2014 2:40 pm
Forum: Roku Developer Program
Topic: Is there a way to convert roString -> String?
Replies: 3
Views: 1451

Re: Is there a way to convert roString -> String?

String constants are only created during BrightScript compilation, e.g. from string literals. There isn't any way to make an roString non-mutable. In the example of your custom XML parser, if your goal is to avoid copying string data, seems like you might want to make your own string pool object to ...
by RokuKC
Mon Dec 01, 2014 3:12 pm
Forum: Roku Developer Program
Topic: Bug: String(n, str) on fw3 [fix: documented as feature]
Replies: 3
Views: 1064

Re: Bug: String(n, str) on fw3

Done, thanks for the report.
by RokuKC
Mon Nov 10, 2014 7:21 pm
Forum: Roku Developer Program
Topic: Extracting from a zip file and unicode
Replies: 2
Views: 1395

Re: Extracting from a zip file and unicode

McSwindler wrote:
[*]Does ReadAsciiFile only support ascii characters, and if so, is there another method to read in utf-8 characters? My json files do contain some special, non-ascii characters.


Despite the name, ReadAsciiFile works implicitly with UTF-8 encoded files.
by RokuKC
Thu Oct 30, 2014 5:12 pm
Forum: Roku Developer Program
Topic: Built-in ToJSON function
Replies: 17
Views: 6056

Re: Built-in ToJSON function

Thanks for the documentation feedback.

A note has been added to the FormatJSON documentation to indicate that it is not supported on the 3.1 firmware.
by RokuKC
Thu Oct 30, 2014 2:14 pm
Forum: Roku Developer Program
Topic: roXML... no GetChildNodes() on fw3?
Replies: 5
Views: 1939

Re: roXML... no GetChildNodes() on fw3?

EnTerr wrote:
Answer from RokuCo, please?
Will getChildNotes() be coming to fw 3?


roXMLElement.GetChildNodes() is only supported for devices running modern firmware.

This has been noted on the documentation.
by RokuKC
Thu Oct 30, 2014 2:10 pm
Forum: Roku Developer Program
Topic: how to delete a array from json?
Replies: 10
Views: 2145

Re: how to delete a array from json?

dcrandall wrote:
TheEndless wrote:
It's also worth noting that FormatJSON isn't a supported function. If you use it in the wrong place, it could hang or crash the box.


ParseJSON and FormatJSON are supported functions for devices running modern firmware.

Bug reports are always welcome. :)
by RokuKC
Mon Oct 27, 2014 4:45 pm
Forum: Roku Developer Program
Topic: how to delete a array from json?
Replies: 10
Views: 2145

Re: how to delete a array from json?

I want to delete a array from json.In this example , I want to delete first item whose groupName="Ungrouped". } Assuming the Ungrouped item is not necessarily the first: j = ParseJSON(jsonStr) for i = 0 to j.destinationContent.Count() - 1 item = j.destinationContent[ i ] if item.groupName...
by RokuKC
Mon Oct 20, 2014 1:00 pm
Forum: Roku Developer Program
Topic: roParagraphScreen.AddGraphic() - what's the default fit?
Replies: 5
Views: 1649

Re: roParagraphScreen.AddGraphic() - what's the default fit?

@RokuKC - do you mean that ifParagraphScreen. AddGraphic(url as String) method should not be used? (that's the version without displayMode param, it has existed first) Sorry, I was more focused on the bit about what happens when a unrecognized display mode is passed to AddGraphic explicitly. :) Add...
by RokuKC
Mon Oct 13, 2014 6:50 pm
Forum: Roku Developer Program
Topic: roParagraphScreen.AddGraphic() - what's the default fit?
Replies: 5
Views: 1649

Re: roParagraphScreen.AddGraphic() - what's the default fit?

My question is what is the default display mode that is used by AddGraphic , i.e. with no param or invalid displayMode? It is not "scale-to-fill", contrary to what doc says. Rather, for the image i have it seems to show it 1:1 (no scale) but chomps about 1/3 from top and 1/3 from bottom. ...
by RokuKC
Tue Sep 30, 2014 5:22 pm
Forum: Roku Developer Program
Topic: roXmlList implements ifArray, apparently (+ a mystery)
Replies: 18
Views: 5456

Re: roXmlList implements ifArray, apparently

... Because a component may implement 2 interfaces with overlapping method names (as the case is here - roXmlList implements both ifList and ifArray and both have .count()s ) - there should always be a way to "explicitate" which of the two methods i want, shouldn't it?! There shouldn't be...
by RokuKC
Tue Sep 23, 2014 5:28 pm
Forum: Roku Developer Program
Topic: roXmlList implements ifArray, apparently (+ a mystery)
Replies: 18
Views: 5456

Re: roXmlList implements ifArray, apparently (+ a mystery)

... I was asking about ifGetMessagePort/ifSetMessagePort of roCaptionRenderer - why they were not returned by getInterface . And then someone apparently decided "solution" to that was to just delete ifGetMessagePort/ifSetMessagePort from the page. ... That is correct. roCaptionRenderer do...
by RokuKC
Thu Sep 18, 2014 4:28 pm
Forum: Roku Developer Program
Topic: roXmlList implements ifArray, apparently (+ a mystery)
Replies: 18
Views: 5456

Re: roXmlList implements ifArray, apparently

Hm, yeah - .count() is a method of both ifList and ifArray, good catch. But check this out - seems when you use count() on roXmlList, it's neither ifList's nor ifArray's: BrightScript Debugger> ? rXL.count() 1 BrightScript Debugger> ? rXL.ifList.count() 0 BrightScript Debugger> ? rXL.ifArray.count(...
by RokuKC
Thu Sep 18, 2014 3:11 pm
Forum: Roku Developer Program
Topic: Trouble with parsing
Replies: 8
Views: 3437

Re: Trouble with parsing

First I remembered of another warning , which too is pretty useless without context. Oh, the extra effort it took me to track down. I did guess then line# might not be easily avail but did suggest another piece of info that is on hand. Yes, I've hit this too, and agree that the invalid paths messag...
by RokuKC
Sat Sep 13, 2014 10:14 am
Forum: Roku Developer Program
Topic: Trouble with parsing
Replies: 8
Views: 3437

Re: Trouble with parsing

Yes, I agree that having even minimal source context will make non-fatal error messages from script runs much more useful. :)

It's on the backlog, but not as easy as you might think. :(
by RokuKC
Fri Sep 12, 2014 5:07 pm
Forum: Roku Developer Program
Topic: Trouble with parsing
Replies: 8
Views: 3437

Re: Trouble with parsing

Hi lbell, In categoriesfeed.xml, it looks like there are elements like: <categoryLeaf title="Video sermon categoryleaf 1" description="" feed="http://www.map2life.com/roku/xml/videosermonfeed.xml"/> ParseCategoryNode is being passed that element via recursive calls and ...