Skip to content

Tizen launcher


title: Tizen launcher description: The Samsung Tizen launcher: what it does, how it is packaged and built. audience: internal type: explanation owner: platform-team last_reviewed: 2026-11-18


The Samsung Tizen launcher: the same job as the webOS launcher (pairing, MQTT, signage playback, shows the playout UI), packaged as a signed .wgt.

Repository: https://mashup.castis.io/playtelly/GuestApp/LauncherAPP-Tizen (work branch feature/reducemenu). The TV UI it bundles is built from playout-app.

Where is the code?

There are two projects. Most "I changed it but nothing happened" comes from editing the wrong one or forgetting to rebuild.

What you want to change Where the source is Then
The launcher (pairing screen, MQTT commands, error page, opening Netflix/YouTube, boot) this repo, folder app/ ./package-sssp.sh <stg\|hotel>
The TV UI (home page, menu, welcome page, languages, fonts) playout-app/src/ in the launcher-app repo ./package-sssp.sh <stg\|hotel> phoenix (builds and bundles it)
Backend / environment addresses config.js (stg), config.hotel.js (hotel) rebuild
App id, version, permissions config.xml (bump version= for every release) rebuild

playout/ in the repo is generated; .buildResult/, Playtelly.wgt and sssp-release-*/ too. Do not edit them.

The launcher, file by file (app/)

Plain scripts loaded by index.html in numbered order; one shared global scope, no bundler.

File What is in it
01-config-state.js backend address from the config, storage keys, shared flags
02-lazy-libs.js hls.js / shaka / QR libraries loaded on first use
03-ui-helpers.js screens, debug line, connection-error page (Retry Now, auto-retry)
04-boot.js main(): load settings, check the saved token, go to pairing or operation
05-provisioning.js the code and QR pairing screen
06-operational.js connect MQTT, choose playout or signage, heartbeat
07-live-control.js announcements and the emergency overlay
08-remote-commands.js what the TV does for each MQTT command
09-device-info.js storage listing sent to Tellyboard
10-playout-bridge.js shows the playout iframe and answers its postMessage requests; forwards the Return key
11-native-apps.js find and open Netflix/YouTube, open the store, the Home-key lock
12-resume-heartbeat.js resume playback after a restart, heartbeat
13-start.js registers the remote keys, shows the yellow tag, calls main()

Release workflow

Targets

The app is built for one environment on purpose; it never switches while running.

target settings when the backend cannot be reached
stg fixed in config.js (staging) the error page retries the staging backend
hotel read only from http://playtelly.internal/config (config.hotel.js) retries playtelly.internal, then the backend it names; never falls back to staging

Commands (run in the repo folder)

./build.sh <stg|hotel> [phoenix|sunway|playtelly] [--no-tag]   # signed Playtelly.wgt
./package-sssp.sh <stg|hotel> [property]                        # build + sssp-release-<target>/  (Playtelly.wgt + sssp_config.xml)
NO_TAG=1 ./package-sssp.sh hotel phoenix                        # without the yellow tag -> sssp-release-hotel-notag/
./upload-sssp.sh <stg|hotel|stg-notag|hotel-notag>              # replace the files on seaweed and verify the size
  • Give the property whenever the UI changed; without it the playout/ folder already in the repo is bundled as it is.
  • TIZEN_PROFILE=<name> picks the certificate profile (default Tizen-VVN); OUT_DIR=<dir> changes the output folder.
  • build.sh stops if the profile is missing and refuses an unsigned package.
  • Bump version= in config.xml for every release. The TV compares it with <ver> in sssp_config.xml.
  • upload-sssp.sh deletes the old files, uploads the new ones and checks the size. All targets go to https://stg.filer.castis.io/buckets/tizen/, so the last upload wins. The display's URL launcher points at .../buckets/tizen/sssp_config.xml.

Variants (certificates)

Variant Profile DUID list Example
Vietnam (default) Tizen-VVN duids_vn.txt NO_TAG=1 ./package-sssp.sh hotel phoenix
Thailand Tizen-TH duids_th.txt TIZEN_PROFILE=Tizen-TH NO_TAG=1 OUT_DIR=sssp-release-th-notag ./package-sssp.sh hotel phoenix

Certificates and DUIDs

The Samsung certificate is locked to devices: its distributor certificate lists the DUID of every TV that may install the app.

  • A TV's DUID: Settings, Support, About this TV, Contact Samsung, Unique Device ID (not "Unique ID"). Photos are easy to misread (O/0, I/1, S/5).
  • One DUID per line in the list file, at most 50 per certificate.
  • New certificate (VS Code Tizen extension or Tizen Studio): Samsung, Partner, then Import a DUID list file in the distributor step. The default "Add individual DUIDs" mode only offers devices connected through sdb at that moment.
  • Check the DUIDs inside the signed package before using it: unzip signature1.xml, take the first X509Certificate, and read the deviceid= entries with openssl x509 -text (see the repository README for a ready snippet).
  • Every new certificate also makes a new author certificate. A TV with the old app refuses the new one (Author certificate not match); remove the old app first. Devices pair again.
  • ~/SamsungCertificate/<profile>/ is outside the repo: back it up with its password. Never commit it.

Install on a TV (developer mode)

sdb connect <tv ip>:26101
tizen install -n /absolute/path/Playtelly.wgt -t <device name>
tizen run -p PL306N25VN.PlaytellyTizen -t <device name>
  • Author certificate not match: remove the old app. tizen uninstall often cannot find it (was get app info failed); use the package id through sdb: sdb -s <tv ip>:26101 uninstall PL306N25VN. The TV may drop off sdb for a moment: sdb connect again.
  • Do not use Run/Install of the VS Code Tizen extension on this project: it guesses the app id from the folder name and installs a second, unsigned app.
  • Known issue: the Samsung signage SBB-SS08NT2 refuses every package with install failed[118012] (Samsung Partner and Tizen Public certificates, DUID in the list). sdb shell and sdb dlog are disabled on it. Open with Samsung.

The hotel /config

http://playtelly.internal/config returns JSON; only coreApiUrl is required.

Field Meaning
coreApiUrl CoreAPI address (required)
mqttHostWebos MQTT broker for the web launchers, e.g. ws://marina.castis.io:80/mqtt; preferred
mqttUri The Android app's address; used if mqttHostWebos is missing (no scheme means wss://host:443/mqtt)
mqttUser, mqttPassword MQTT login; otherwise HOTEL_MQTT_USER / HOTEL_MQTT_PASSWORD in config.hotel.js (the password is empty there on purpose)
claimUrl base of the pairing QR
guestAppUrl where the guest-app QR codes point (a public http:// becomes https://)
lockHome false turns the Home-key lock off

Behaviour worth knowing

  • Yellow tag (top right, STG/HOTEL and the version): app/13-start.js; the no-tag build sets APP_HIDE_TAG.
  • Home key: a web app cannot receive it. With the lock on, the launcher asks the TV to bring the app back when it is hidden (at most 3 times in 15 s, not after the app itself opened Netflix/YouTube/the store). Whether the TV allows it depends on the model; the result is shown on the debug page. A hotel TV's own Hospitality settings are the reliable way.
  • Return key is handed to the playout page; on the landing page it does nothing (the app never exits).
  • Debug page: the yellow remote key. See Playout UI on Tizen.

Still open

Signage 118012; the hotel MQTT password; the Home key on hotel TVs; live thumbnails and logos depend on the backend (LIVE_THUMBS_ENABLED, channel artwork).