Your Digital Media Has Never Looked So Good

Search found 9 matches

by sdpetersen
Fri Nov 30, 2018 7:21 am
Forum: Roku Developer Program
Topic: BrS: comparing 2 objects for identity?
Replies: 10
Views: 1928

Re: BrS: comparing 2 objects for identity?

Finding this post 4 years later, I was looking for a way to compare arrays as well. I came up with what I feel is a pretty decent hack: convert the arrays to strings and then compare them. When you want to do this: if m.top.array = newArray Do this instead: if FormatJSON(m.top.array) = FormatJSON(ne...
by sdpetersen
Wed Nov 28, 2018 1:50 pm
Forum: Roku Developer Program
Topic: Legacy SDK Deprecation Question
Replies: 3
Views: 265

Re: Legacy SDK Deprecation Question

Thanks @RokuTomC - since my current channel isn't unstable currently, I suppose I can breathe a sigh of relief and stop stressing about the holiday deadline and take my time making sure I get the new channel right.
by sdpetersen
Tue Nov 27, 2018 11:01 pm
Forum: Roku Developer Program
Topic: Legacy SDK Deprecation Question
Replies: 3
Views: 265

Legacy SDK Deprecation Question

I wondered if someone could clarify/confirm one thing for me that I found on the Roku Blog post about the Legacy SDK being deprecated:  https://blog.roku.com/developer/2017/02/01/legacy-sdk My current channel is using a lot of the Legacy SDK. I'm pushing really hard to get a new channel developed, b...
by sdpetersen
Tue Nov 13, 2018 7:08 am
Forum: Roku Developer Program
Topic: Eclipse Error When Sideloading
Replies: 5
Views: 2178

Re: Eclipse Error When Sideloading

For anyone finding this later, like me, I had the same problem. It started after I experienced a power bump that reset my computer.

Solution: I found that the reset erased the selected files on the BrightScript Application Deployment box. Once I checked the right files, all worked again.
by sdpetersen
Tue Oct 30, 2018 9:18 pm
Forum: Roku Developer Program
Topic: Passing a variable out of a function
Replies: 3
Views: 314

Re: Passing a variable out of a function

I figured it out, thanks for your help! For anyone who finds this later, here's some sample code (because everything's better with a sample :lol:): Disclaimer: This is has been simplified for posting here and is not guaranteed to run as-is, but should give you the general idea of how to do things. l...
by sdpetersen
Mon Oct 29, 2018 5:08 am
Forum: Roku Developer Program
Topic: Passing a variable out of a function
Replies: 3
Views: 314

Re: Passing a variable out of a function

Thanks for your reply.

I think what you're recommending make sense... can you point me to some sample code that shows this process working?
by sdpetersen
Fri Oct 26, 2018 7:04 am
Forum: Roku Developer Program
Topic: Dynamically creating contentNodes for LabelList
Replies: 3
Views: 548

Re: Dynamically creating contentNodes for LabelList

Have you had any success figuring this out? I think I'm running into a similar issue and was hoping for any insight you can share.
by sdpetersen
Fri Oct 26, 2018 6:53 am
Forum: Roku Developer Program
Topic: Self-Managed Content Availability To Subscribers
Replies: 2
Views: 274

Re: Self-Managed Content Availability To Subscribers

Yes, this happens all day long in pretty much every app or channel. What you need first is an API to your website/database. It's essentially a page that accepts user accounts and returns the list of albums/movies, etc that they have access to in a program-legible format (I'd recommend JSON as your f...
by sdpetersen
Fri Oct 26, 2018 5:53 am
Forum: Roku Developer Program
Topic: Passing a variable out of a function
Replies: 3
Views: 314

Passing a variable out of a function

I'm making an API call to gather associative arrays of content to display in my channel. I'm doing all this through a Task, but I'm running into trouble getting the variables back to the Main script for use. In a nutshell, I have this function called from the Init of the navigation.brs file like so:...