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: 
sjb64
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

Fixed
The Language Reference, section 5.11: IF expression THEN statements [ELSE statements]

"If caveman = "fred" then print "flintsone" else print "rubble""

Flintstone is misspelled!

While we're worrying about details like billing and function description errors and sample program failures, we almost missed something really important like this.
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

"sjb64" wrote:
If caveman = "fred" then print "flintsone" else print "rubble"
Flintstone is misspelled!
While we're worrying about details like billing and function description errors and sample program failures, we almost missed something really important like this.

<snort> I'd think that's one of the few places where a typo is intentional , like say to avoid "unlicensed use" of characters. I fully expect a RokuCo rep to neither confirm nor deny intentional similarity.

I would be amiss not to complain about the stiff way in which "truthiness" is defined though, not allowing for the logical operators' use as a makeshift conditional operator (like in say Lua or other BASICs i know):
print (caveman = "fred" and "flintsOne" or "rubble") 
0 Kudos
adamkaz
Channel Surfer

Re: SDK Docs: links to fix, missing/broken/etc

FIXED:
On the Web Service API page, the base URL changes between the examples. For some, it is "https://apipub.roku.com/" and for others, it is "https://apipub.qa.roku.com/" is this a typo?

As a general comment, its a little mystifying to me that some API calls use XML for request and response and some use JSON.
0 Kudos
brybott
Visitor

Re: SDK Docs: links to fix, missing/broken/etc

On the ifCaptionRenderer page, under ShowSubtitle: http://sdkdocs.roku.com/display/sdkdoc/ ... easBoolean)asVoid

It says This function behaves the same was as ifVideoScreen.ShowSubtitle()

There is a typo (was should be way). But also, there is no ShowSubtitle section on the ifVideoScreen page. Additionally, despite there being a blog post about using ShowSubtitle on a roVideoScreen, ShowSubtitle does not seem to be available on the roVideoScreen component.
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

The description of what roDeviceInfo.GetAudioDecodeInfo() returns is wrong -
it says "<number of channels>:<SAD1>:<SAD2>:<PassThru>",
should be "<number of channels>:<SAD2>:<bitrate>:<is-pass-through>" -
see viewtopic.php?f=34&t=92320
0 Kudos
EnTerr
Roku Guru

roUrlTransfer.AsyncGet... - underdocumented

Fixed
The behavior of the Async methods of roUrlTransfer is under-documented - see viewtopic.php?f=34&t=95138

Should be documented in TFM.
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

ifDeviceInfo.GetCountryCode() should be updated for the added countries, MX and FR i think? Also maybe GetCurrentLocale() is affected too?
0 Kudos
tmm1
Channel Surfer

Re: SDK Docs: links to fix, missing/broken/etc

On https://sdkdocs.roku.com/display/sdkdoc/PosterGrid, "When fixedLayout is false" should say "When fixedLayout is true"

On https://sdkdocs.roku.com/display/sdkdoc ... Attributes, the dimensions provided for mm_icon_focus_hd and mm_icon_focus_sd are incorrect.
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

Page talking about "Special Scene Graph Debugging Commands", should mark that as "avail. in 7.2+",
see viewtopic.php?f=34&t=95410
0 Kudos
EnTerr
Roku Guru

Re: SDK Docs: links to fix, missing/broken/etc

roInput / roInputEvent still undocumented, after 5 years or so:
viewtopic.php?f=34&t=74693
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.