Your Digital Media Has Never Looked So Good

 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Sat Jan 31, 2015 10:52 am

Last edited by EnTerr on Wed May 04, 2016 3:24 pm, edited 1 time in total.
 
lmarder
Posts: 12
Joined: Mon Feb 16, 2015 8:29 am

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

Wed Feb 25, 2015 12:10 pm

Fixed.
http://sdkdocs.roku.com/display/sdkdoc/roPosterScreen

poster.SetBreadcrumbText"[location1]", "[location2]")


is missing an opening parenthesis
 
User avatar
Komag
Posts: 649
Joined: Fri Aug 22, 2014 3:42 am

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

Sat Feb 28, 2015 2:28 am

In 3.7.10 Logical and Bitwise Operators, (BrightScript Language Reference)
The example seems wrong:
if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero

But if count is zero, then 0 > 0 is false so it WILL evaluate total / count and cause the runtime error

Probably it should be:
if count >= 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero
 
User avatar
Komag
Posts: 649
Joined: Fri Aug 22, 2014 3:42 am

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

Sat Feb 28, 2015 2:34 am

Fixed.
(BrightScript Language Reference) 4.9 Scope

If in function scope and that function is not a method in and object, "m." also references the global associative array accessed with GetGlobalAA().

Typo: it should be "in an object" (not "and")
 
User avatar
RokuMarkn
Roku Engineering
Posts: 1573
Joined: Mon Jun 09, 2008 9:20 am

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

Sat Feb 28, 2015 8:42 am

Komag wrote:
In 3.7.10 Logical and Bitwise Operators, (BrightScript Language Reference)
The example seems wrong:
if count > 0 and (total / count) > 33 then ...
Because of minimal evaluation, this will work correctly even when count is zero

But if count is zero, then 0 > 0 is false so it WILL evaluate total / count and cause the runtime error


The example is correct. When the first clause of an AND is false, the second doesn't need to be evaluated.

--Mark
 
User avatar
Komag
Posts: 649
Joined: Fri Aug 22, 2014 3:42 am

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

Sat Feb 28, 2015 12:24 pm

Oh my goodness :oops: :FACEPALM: For some reason my brain was thinking "OR", sorry!
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Sat Jul 25, 2015 10:30 am

 
adamkaz
Posts: 106
Joined: Sun Jan 11, 2009 2:23 pm

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

Mon Aug 17, 2015 7:36 am

There is a typo in the example on the roSearchScreen page: http://sdkdocs.roku.com/display/sdkdoc/roSearchScreen

print "Unknown event: "; msg.GetType(); " msg: ";sg.GetMessage()


should be:
print "Unknown event: "; msg.GetType(); " msg: "msg.GetMessage()
 
User avatar
RokuKC
Posts: 260
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

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

Mon Aug 17, 2015 11:11 am

adamkaz wrote:
There is a typo in the example on the roSearchScreen page: http://sdkdocs.roku.com/display/sdkdoc/roSearchScreen

print "Unknown event: "; msg.GetType(); " msg: ";sg.GetMessage()


should be:
print "Unknown event: "; msg.GetType(); " msg: "msg.GetMessage()


Fixed, thanks.
 
adamkaz
Posts: 106
Joined: Sun Jan 11, 2009 2:23 pm

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

Tue Aug 18, 2015 11:43 am

Fixed.
Not really wrong, but
SetSearchButtonText(text as String) as Void
shows up twice on the ifSearchScreen page.
Last edited by adamkaz on Thu Aug 20, 2015 4:28 pm, edited 1 time in total.
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Thu Aug 20, 2015 1:33 pm

Last edited by EnTerr on Thu Aug 20, 2015 5:26 pm, edited 2 times in total.
 
User avatar
RokuMarkn
Roku Engineering
Posts: 1573
Joined: Mon Jun 09, 2008 9:20 am

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

Thu Aug 20, 2015 3:20 pm

They both exist and are documented.

GetFont() returns an roFont object, for use with roScreen/roBitmap.
Get() returns a font description string for use with roImageCanvas.

Does this need more clarification in the docs?

--Mark
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

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

Thu Aug 20, 2015 5:22 pm

My bad on this one! I saw the thread, did a quick check:
BrightScript Debugger> fr = createObject("roFontRegistry"): ? fr
<Component: roFontRegistry>
BrightScript Debugger> ? fr.Get("Open Sans",20,40,false)
Open Sans,20,-1,5,2,0,0,0,0,0
BrightScript Debugger> ? fr.getFont("Open Sans",20,40,false)
invalid
... and made wrong conclusion. Might have also been the non-alphabetic order on the page, since i did not see the ".get()"
 
adamkaz
Posts: 106
Joined: Sun Jan 11, 2009 2:23 pm

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

Wed Aug 26, 2015 4:22 pm

Throughout the "Channel Packaging and Publishing" page, there are references to other sections. However the document does not appear to be broken down by section anymore.

http://sdkdocs.roku.com/display/sdkdoc/ ... Publishing

Example:
An erased key can be restored by rekeying the player as described in section 3.4.

There is no section 3.4.

This is just one of the references, there are more.
 
adamkaz
Posts: 106
Joined: Sun Jan 11, 2009 2:23 pm

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

Wed Oct 21, 2015 9:54 am

We're currently implementing Roku billing. A few things I've noticed:

The sample billing app crashes.

The documentation for ifChannelStore.getPurchases() states the following parameters will be returned:
String code
String name
String description
String SDPosterUrl
String HDPosterUrl
String cost (Localized cost with local currency symbol)
Integer qty

Here are the parameters that I am seeing returned:
String code
String cost
Integer qty
-- String name
-- String description
-- String SDPosterUrl
-- String HDPosterUrl

++ String purchaseId
++ String productType
++ String purchaseDate

++ Integer freeTrialQuantity

We need the transactionID (assuming that is what purchaseID is) to verify subscriptions throughout the rest of our platform, so I was happy to find we could get it later if there was a problem registering it at the time of transaction.

Who is online

Users browsing this forum: No registered users and 6 guests