Forum Discussion

danb's avatar
danb
Visitor
12 years ago

Is there a concept of brightscript "modules" ?

I am a node developer that is just starting out building a Roku channel. I am getting a decent grasp of brightscript, but I am not seeing any module library available. For instance with node if I had to auth via oauth2 then visit to npmjs.org will give me what I need to get going. Perl for instance has cpan... do brightscript developers have a module library to choose from?

2 Replies

  • You may need to write much of what you need yourself, depending on what you are trying to accomplish - although we have some libraries available, if you download the SDK, you'll see there are some libraries in there, for example, urlUtils.brs, and anything beginning with NWM_

    Many roku channels are built as minor modifications of the examples in our SDK.

    On the device itself there are a few built in brightscript libraries to help with sprite based graphics and some hex number functions.

    For other online resources, look at LibRokuDev.In addition to the examples in the SDK, many of which are out of date, please see our newer examples on SourceForge.

    There are also plenty of independent Roku based open source projects posted on GitHub which you might find of use or of interest, as well as various useful functions floating around on this forum.

    - Joel
  • Joel thanks for the reply.

    I will piece together modified examples and start getting to work on the channel. I am going to post separate topics for some help on components I need to get this to work. Thanks!