# radiantmediaplayer/rmp-webos architecture

> Architecture diagram of the GitHub repository radiantmediaplayer/rmp-webos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/radiantmediaplayer/rmp-webos
- Repository: https://github.com/radiantmediaplayer/rmp-webos

## Overview

This is a hosted webOS TV demo for Radiant Media Player. Viewers navigate the demo with a TV remote, open player examples, and use remote controls for playback; the app also displays device information. The README documents DASH/HLS streaming and examples for live playback, codecs, DRM, and rmp-vast ads. Sample pages and HTML wiring were not excerpted, so those capabilities are represented without guessed call paths. Bootstrap and the webOS SDK are present as vendor code; their use by individual pages is not established by the excerpts.

Main entry points: [`webapp/index.html`](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/index.html) (Demo page), [`webapp/js/main.js`](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/main.js) (Page remote navigation), [`webapp/js/player.js`](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/player.js) (Player remote controls), [`webapp/sample/live`](https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/live) (Live playback examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["TV demo app"]
  node_entry["Demo page<br/>[index.html]"]
  node_remote["Page remote navigation<br/>[main.js]"]
  node_device["Device information<br/>[main.js]"]
  node_playerremote["Player remote controls<br/>[player.js]"]
end

subgraph group_examples["Player examples"]
  node_live["Live playback examples"]
  node_codecs["Codec examples"]
  node_drm["DRM examples"]
  node_ads["Ad examples"]
end

subgraph group_vendor["Vendor libraries"]
  node_bootstrapbundle["Bootstrap bundle"]
  node_bootstrapesm["Bootstrap ESM<br/>[bootstrap.esm.js]"]
  node_bootstrapjs["Bootstrap script<br/>[bootstrap.js]"]
  node_webossdk["webOS SDK<br/>[webOSTV.js]"]
  node_webosdev["webOS dev SDK<br/>[webOSTV-dev.js]"]
end

node_viewer(("TV viewer"))
node_webos{{"webOS TV"}}
node_radiant{{"Radiant player"}}

node_viewer -->|"presses keys"| node_remote
node_viewer -->|"controls playback"| node_playerremote
node_remote -->|"renders device info"| node_device
node_remote -->|"requests device info"| node_webos
node_playerremote -->|"controls playback"| node_radiant
node_webos -.->|"hosts app"| node_entry
node_entry -.->|"offers examples"| node_live
node_entry -.->|"offers examples"| node_codecs
node_entry -.->|"offers examples"| node_drm
node_entry -.->|"offers examples"| node_ads

click node_entry "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/index.html"
click node_remote "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/main.js"
click node_device "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/main.js"
click node_playerremote "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/player.js"
click node_live "https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/live"
click node_codecs "https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/codecs"
click node_drm "https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/drm"
click node_ads "https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/advertisement"
click node_bootstrapbundle "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.bundle.js"
click node_bootstrapesm "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.esm.js"
click node_bootstrapjs "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.js"
click node_webossdk "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/webOSTVjs-1.2.7/webOSTV.js"
click node_webosdev "https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/webOSTVjs-1.2.7/webOSTV-dev.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_remote,node_device,node_playerremote,node_viewer toneBlue
class node_live,node_codecs,node_drm,node_ads toneAmber
class node_bootstrapbundle,node_bootstrapesm,node_bootstrapjs,node_webossdk,node_webosdev toneMint
class node_webos,node_radiant toneIndigo
```

## Components

### TV demo app

- [Demo page](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/index.html): `webapp/index.html`
- [Page remote navigation](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/main.js): `webapp/js/main.js`
- [Device information](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/main.js): `webapp/js/main.js`
- [Player remote controls](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/player.js): `webapp/js/player.js`

### Player examples

- [Live playback examples](https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/live): `webapp/sample/live`
- [Codec examples](https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/codecs): `webapp/sample/codecs`
- [DRM examples](https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/drm): `webapp/sample/drm`
- [Ad examples](https://github.com/radiantmediaplayer/rmp-webos/tree/master/webapp/sample/advertisement): `webapp/sample/advertisement`

### Vendor libraries

- [Bootstrap bundle](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.bundle.js): `webapp/bootstrap-5.2.3-dist/js/bootstrap.bundle.js`
- [Bootstrap ESM](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.esm.js): `webapp/bootstrap-5.2.3-dist/js/bootstrap.esm.js`
- [Bootstrap script](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/bootstrap-5.2.3-dist/js/bootstrap.js): `webapp/bootstrap-5.2.3-dist/js/bootstrap.js`
- [webOS SDK](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/webOSTVjs-1.2.7/webOSTV.js): `webapp/js/webOSTVjs-1.2.7/webOSTV.js`
- [webOS dev SDK](https://github.com/radiantmediaplayer/rmp-webos/blob/master/webapp/js/webOSTVjs-1.2.7/webOSTV-dev.js): `webapp/js/webOSTVjs-1.2.7/webOSTV-dev.js`

### Other components

- **TV viewer**
- **webOS TV**
- **Radiant player**

## Connections

- TV viewer → Page remote navigation: presses keys (evidence: `webapp/js/main.js`)
- TV viewer → Player remote controls: controls playback (evidence: `webapp/js/player.js`)
- Page remote navigation → Device information: renders device info (evidence: `webapp/js/main.js`)
- Page remote navigation → webOS TV: requests device info (evidence: `webapp/js/main.js`)
- Player remote controls → Radiant player: controls playback (evidence: `webapp/js/player.js`)
- webOS TV → Demo page: hosts app (evidence: `README.md`)
- Demo page → Live playback examples: offers examples (evidence: `README.md`)
- Demo page → Codec examples: offers examples (evidence: `README.md`)
- Demo page → DRM examples: offers examples (evidence: `README.md`)
- Demo page → Ad examples: offers examples (evidence: `README.md`)
