Creating Custom BrightScript UIs with Image Canvas

To round out our introductory coverage of BrightScript custom user interface development, we turn our attention to the image canvas component.

Continue reading

Posted in Uncategorized | 2 Comments

Colliding Sprites

Our last installment introduced using the BrightScript 2D API to create sprites and animations.  In this article we will look at how to add collisions to sprite animations.

Continue reading

Posted in Uncategorized | 1 Comment

Sprites and Animations Using the 2D API

In our last article, we took an introductory look at using the BrightScript 2D API.  The coverage there was pretty high level, and focused on basics like drawing simple shapes, images, and text on single buffered roScreens.  In this article, we will explore some of the more advanced 2D API concepts and show how to build richer applications with the API.  We will look at things like compositors, sprites, and animations.

Continue reading

Posted in Uncategorized | 1 Comment

Introducing the BrightScript 2D API

In many of our recent articles, we have looked at how to use the screen and other UI templates offered by the BrightScript SDK. These components are great for getting your channels developed quickly and for giving them the standard Roku look and feel.

Continue reading

Posted in Uncategorized | Leave a comment

Communicating with Web Services from BrightScript

In the last few blog posts, we’ve been looking at implementing fundamental functionality in BrightScript channels.  This trend continues in this installment.  This time around, we will be exploring how to communicate with web services from BrightScript.  Continue reading

Posted in Uncategorized | 1 Comment

Getting Started with BrightScript Screen Navigation

A common task for BrightScript developers is implementing the screen navigation that underlies the user interface flow in their Roku channels.  In this article we will explore some basic BrightScript screen navigation techniques.

Continue reading

Posted in Uncategorized | 12 Comments

Localizing Your Roku Channels

It is likely that most of the channels you’ve used on your Roku player use English in their user interfaces. However, support for other languages on Roku devices has been steadily improving.

Continue reading

Posted in Uncategorized | 6 Comments

Using the Enhanced List Screen

Now that you’ve had some time to write some BrightScript code with the recent 4.8 software release for Roku 2, Roku LT and Roku HD players, it’s time to look at some other new features in the platform.  This time around, let’s look at what’s new in the list screen component. Continue reading

Posted in Uncategorized | 6 Comments

JSON Support Comes to Roku

With the 4.8 software release for Roku 2, Roku LT and Roku HD players, developers now have access to native JSON parsing support from BrightScript.  Roku channel developers no longer need to integrate third party solutions or worse, roll their own parsing solutions anymore.  Developers can easily consume JSON based feeds or REST API response payloads with one simple API call. Continue reading

Posted in Uncategorized | 11 Comments

Startup Splash Screens

Starting with the forthcoming 4.3 software release, we will support (and strongly encourage) splash screens for Roku Channels. These splash screens are shown immediately when you channel launches, before any code is executed, so the user gets immediate feedback.

To add the splash screen, add three new lines into your manifest file:

splash_screen_hd=pkg:/images/<hd splash screen image>
splash_screen_sd=pkg:/images/<sd splash screen image>
splash_color=#rrggbb

The images you specify will be centered in the screen over the background color specified by splash_color. An easy way to get going is to simply use your current homescreen icons, so these lines might look like this:

splash_screen_hd=pkg:/images/mm_icon_focus_hd.png
splash_screen_sd=pkg:/images/mm_icon_focus_sd.png
splash_color=#062365

A couple of considerations for creating and using splash screen images:

  • images must be in your channel package, they can’t be remotely hosted.
  • consider using fairly small images to keep your package size down. Larger packages may not fit on some user’s Roku players if they have a large number of channels installed, and if your package is over 750kb, it may be limited to Roku 2 units only.

While this requires version 4.3 or later, earlier software releases will ignore these new items in the manifest and function correctly, though without the splash screen.

Let us know if you have any questions

Posted in Uncategorized | 15 Comments