TV apps · Samsung and LG
Samsung’s TV emulator needs an Intel PC or Mac, LG’s simulator runs web apps without DRM, and neither one is a TV. A TV in Developer Mode is, but only for the person sitting in front of it. This guide shows the other route: a real Samsung or LG TV that you, your team and your coding agent all reach from a browser. The screenshots use Nocturne TV, an open-source sample streaming app for both TVs, which every new VibeView account also gets as a sample.
What you need
- Your app as a TV web app package: a Samsung
.wgt(aconfig.xmlwith atizen:applicationid) or an LG.ipk(anappinfo.json). These are the same packages you install on a TV in Developer Mode. - A Team plan or higher. Free and Solo accounts see the Samsung and LG TVs in the Devices list, with an option to upgrade.
You do not need Tizen Studio, LG’s webOS tools, a Developer Mode TV or a Mac.
Run your app on a Samsung or LG TV
- Upload the package. On the Apps page, choose Upload app and pick your
.wgtor.ipk, or runnpx vibeview upload-app yourApp.wgtfrom a terminal. Each upload is a new build of the same app. - Pick the TV. Open Devices, choose your app, and pick a TV under Samsung TV or LG TV.
- Start the session. Click Start session. VibeView installs your app on the TV and opens it, and the TV’s screen streams into the page. The session stays in your app.
- Use the remote. Arrow keys move focus, Enter selects and Escape is Back, or use the remote buttons under the TV. Keys you type go to the focused field.
See what the TV sees: focus and test ids
TV apps live and die by focus, and a screenshot only shows you the highlight. Turn on the UI tree panel in the Device tab, and VibeView lists your page’s elements with their test ids, with the focused one at the top.

Two things in your app make this precise:
- Test ids. Give the elements your tests use a stable
data-testid(React Native Web turnstestIDinto one) or anid. Unique ids make replays exact; elements without one are found by their text. - Focus VibeView can read. If your app moves the browser’s own focus (
element.focus()), VibeView reads it with no setup. If it draws its own highlight with a spatial-navigation library, add@vibeview/tv-focusand callsetFocused(element)when focus moves, ortrackNoriginFocusonce for Norigin Spatial Navigation. It only marks the focused element, with no network and no timers, so it is safe to ship in store builds.
Read your app’s logs
The Logs tab shows your app’s console output while you use it, so a console.log in your code is all it takes to follow what the app did. Nocturne logs every screen it opens and every play and pause:

Write a test for the TV
On the Tests page, click New test, write what the test should check, for example “Add the first show to My list, then check that it is listed under My list”, pick the TV and click Run it now. The test is saved as the run starts. On the first run the AI presses the remote for each move. A run that passes saves each press with the element that had focus, so the next run replays it by element, such as “Dpad Right to Add to My list”, not only which key it pressed.
From there a test runs like any other on VibeView: Smart replays the saved presses by element and hands a step to AI when the screen changed, and AI only lets AI drive every step. Run it from the dashboard or from CI. See TV testing for the details.
Let a coding agent drive the TV
A coding agent can drive a Samsung or LG session through the VibeView CLI or the MCP server (npx vibeview agent-setup sets it up). Start the session on the Devices page, copy its id from Copy session id in the Device tab, and the agent reads the screen, moves focus and presses keys:
npx vibeview ui-tree --session <id> # elements, test ids, [focused]
npx vibeview press dpad_down --session <id> # move focus down
npx vibeview press dpad_center --session <id> # select
npx vibeview screenshot --out tv.png --session <id>
npx vibeview logs --session <id> # the app's console lines
The remote keys an agent can press on these TVs are the d-pad, select, back, play, pause, rewind, forward and backspace.
Make your web TV app easy to test
A few things from building Nocturne that save time on both TVs:
- Handle Back yourself. Samsung sends Back as key code 10009 to every app (Samsung, remote control). LG sends 461 once you set
"disableBackHistoryAPI": trueinappinfo.json; without it, webOS handles Back through the browser history (LG, Back button). - Register the media keys on Samsung. Arrow keys, Enter and Back arrive on their own, but keys such as Play and Pause reach your app only after you register them with
tizen.tvinputdevice.registerKey, per the same Samsung page. - Build for the oldest TV you support. A 2021 LG set runs Chromium 79 (see which Chromium each LG TV runs). Transpile your JavaScript for it and avoid CSS it lacks, such as flexbox
gapandaspect-ratio. - Log what matters. One
console.logper screen change and per playback event makes a failed test easy to read in the Logs tab.
What to know before you start
- Team and higher plans only, subject to device availability. When every TV of a kind is in use, a new session queues.
- A session stays in its app. It runs only the app you started it with: no other apps, no TV home screen and no deep links into your app.
- No share or embed links for Samsung and LG apps. Invite people into your account instead.
- Web apps only. Samsung
.wgtand LG.ipkweb apps run; native Tizen.tpkapps do not.
What works on each TV, and its limits, is on the Samsung TV and LG TV pages. Before a release, work through the smart TV app testing checklist on each TV you ship to. For the vendors’ own tools, see Samsung TV emulator, LG TV emulator and Smart TV emulator and simulator: one tool per TV OS.
Frequently asked questions
Can I test a Samsung TV app without a Samsung TV?
Yes. Upload your Tizen .wgt to VibeView and open a session on a physical Samsung TV in your
browser, on Team and higher plans. Samsung’s own options are its TV emulator in Tizen Studio and
Remote Test Lab.
Can I test an LG webOS app without an LG TV?
Yes. Upload your .ipk and open a session on a physical LG TV in your browser. LG’s webOS TV
Simulator also runs web apps on your computer, without DRM.
Are these real TVs or emulators?
Real TVs: physical Samsung and LG sets, streamed to your browser. Apple TV and Android TV sessions on VibeView are simulators and emulators.
Do I need to change my app?
No. Upload the same .wgt or .ipk you would install in Developer Mode. If your app draws its
own focus highlight, adding @vibeview/tv-focus lets tests replay by element.
Can an AI agent test my Samsung or LG TV app?
Yes. Through the VibeView CLI or MCP server, an agent reads the UI tree with focus and test ids, presses remote keys, takes screenshots and reads app logs. AI test runs (Smart and AI only) work on these TVs too.
Which plan do I need?
Team or higher. Free and Solo accounts see the TVs and an option to upgrade.
Try it yourself
Open a live iOS simulator, Android emulator, Apple TV, Android TV or Roku in your browser.
Start free