DEV Community

Cover image for Roku was always the platform we tested last
Robertas M
Robertas M

Posted on

Roku was always the platform we tested last

What building streaming apps for a dozen screens taught us about the one thing nobody puts in the estimate.

Every streaming app looks the same on a whiteboard. A sign-in screen, a home screen full of rails, a details page, a player. Then someone asks which screens it has to run on, and the whiteboard stops being useful.

At ScriptX, a streaming-app studio in Kaunas, Lithuania, the answer is usually "most of them". Phones and tablets. Apple TV, Android TV and Fire TV. Samsung and LG televisions, which run web apps inside their own browser engines. Roku, which has a programming language of its own. Set-top boxes. Sometimes cars.

One app we work on ships to 13 platforms from two codebases.

The code is rarely the hard part. You share what you can across platforms and isolate what you can't. The hard part comes right after you write it, when you need to see it running on the thing it was written for.

The shelf

For a long time our device lab was the office: around 20 TVs, a shelf of TV boxes, a couple of phones, a tangle of HDMI cables, and remotes that never lived next to the box they belonged to.

A lab like that has two problems. The device you need is the one someone else is already using. And it's all in one room, while the people who need it are not.

TVs make this worse than phones. A phone simulator is a click away on a Mac. A TV app wants the TV, because so much of what can go wrong only happens there:

  • Every interaction is a remote. There's no tapping. Each button, tile and menu has to be reachable with four arrow keys, in an order that makes sense, and the highlight has to land somewhere sensible when a screen opens. You can't judge that from a screenshot.
  • "Web app" means a different browser on every TV. A 2019 Samsung TV runs its apps on Chromium 63. CSS gap for flexbox arrived in Chromium 84. A layout that's perfect in your desktop browser can fall apart on a TV that's only a few years old.
  • Remotes disagree. The Apple TV remote has no number buttons and sends no channel keys. Many Android TV remotes have both. A "press 5 to jump to channel 5" feature is a different feature on each one.

None of these show up until the app runs on the device. So the device decides how fast you can work.

And then there's Roku

Roku apps are written in BrightScript, Roku's own language. To run a build, you switch the Roku into developer mode, sit on the same network as it, and upload a zip through a small web page the Roku serves itself. There's no simulator to download. Roku's Cloud Emulator is a pilot that developers join a waitlist for.

So the Roku lived on a desk, and it got tested last. Nobody decided that. It was simply the least convenient platform to reach, and the least convenient thing always slides to the end of the list.

We weren't the only ones. The CTO of one of our clients said it in one sentence:

"Roku used to be the platform we tested last, because it meant a box on someone's desk."

Clients don't have your shelf

The other half of the problem is showing the work.

A client wants to see the new home screen before it ships. Your choices are all a bit bad. Post them a device. Send a TestFlight invite, which only covers Apple. Record a video they can't touch. Or join a call and hold a phone up to the camera while they say "can you scroll down a bit?"

The first time it went differently, the change was on Roku and the person who had to sign it off was a client's COO, working from home that day. We sent a link. The COO opened the Roku app in a browser at home and went through the change with the remote on the screen. No device in the post, and nobody holding a phone up to a camera.

So we moved the shelf

VibeView started as our own tooling to make the shelf go away, and it's still what we use on our own client work.

The idea is simple. Put the devices where everyone can reach them, and stream them into a browser tab. iPhones, Android phones, Apple TV and Android TV run as simulators and emulators on our machines. The Roku is a physical Roku, and Samsung and LG apps run on physical TVs. You use them from the browser the same way: a live device, a remote, a keyboard.

A physical Roku Express 4K+ streamed into a VibeView browser tab, running the Atlas sample app, with the remote controls beside the screen

A few things changed for the teams using it, that client among them:

  • The Roku stopped being a place. It's in the cloud, so developers work on it away from the desk, and so do the coding agents they work with.
  • Review became a link. Managers and clients open a link and use the running app in their own browser. There's nothing to install and no device to post.
  • Old builds stayed around. A fix gets checked against a release from two months ago without rebuilding it.

That client's numbers so far: more than 2,400 test runs and more than 140 cloud builds, across five platforms from phone to Roku.

What we'd tell another team

Count device access in the estimate. Ten platforms isn't ten times the code. It's ten times the moments when someone has to find the right remote.

Start with the platform you'd rather avoid. Whatever is hardest to reach is where bugs collect, because it gets the least attention. Ours was Roku.

Make "show me" a link. If seeing the work needs hardware, a meeting or an install, people see it later, so they give feedback later.

Keep old builds. "Did this work in the last release?" should take a minute, not an afternoon of rebuilding.

Keep a hardware pass. A simulator or a streamed device can't tell you everything. Camera, performance and the odd firmware quirk still need a device in your hand before release. Just not for every single change.

The whiteboard still makes the job look smaller than it is. But the Roku doesn't get tested last anymore.


VibeView is the device lab we built from that shelf. You can try a live iPhone, Android or TV device in your browser at vibeview.io.

Top comments (0)