# rokudev/samples architecture

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

- Interactive diagram: https://gitdiagram.com/rokudev/samples
- Repository: https://github.com/rokudev/samples

## Overview

This archived Roku samples repository is represented here by a DASH thumbnail-ID helper and HLS media segments. The helper accepts an MPD file, inspects adaptation sets, and writes an existing or next image-adaptation ID to stdout. The HLS segments are included as media assets, but the supplied tree and excerpts do not show how they are consumed. The architecture is necessarily narrow: no channel runtime or broader sample workflow is visible in the provided files.

Main entry points: [`media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`](https://github.com/rokudev/samples/blob/master/media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py) (Thumbnail ID helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("CLI user"))
node_helper["Thumbnail ID helper<br/>[get_thumbid.py]"]
node_mpd["DASH MPD file"]
node_xml["XML parser"]
node_stdout["ID output"]
node_hls["HLS segments"]

node_operator -->|"runs with file"| node_helper
node_helper -->|"parses input"| node_mpd
node_helper -->|"calls parse"| node_xml
node_helper -->|"writes ID"| node_stdout

click node_helper "https://github.com/rokudev/samples/blob/master/media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py"
click node_hls "https://github.com/rokudev/samples/tree/master/media/TrickPlayThumbnailsHLS"

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_operator toneBlue
class node_helper,node_hls toneTeal
class node_mpd,node_xml,node_stdout toneIndigo
```

## Components

### Other components

- **CLI user**
- [Thumbnail ID helper](https://github.com/rokudev/samples/blob/master/media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py): `media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`
- **DASH MPD file**
- **XML parser**
- **ID output**
- [HLS segments](https://github.com/rokudev/samples/tree/master/media/TrickPlayThumbnailsHLS): `media/TrickPlayThumbnailsHLS`

## Connections

- CLI user → Thumbnail ID helper: runs with file (evidence: `media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`)
- Thumbnail ID helper → DASH MPD file: parses input (evidence: `media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`)
- Thumbnail ID helper → XML parser: calls parse (evidence: `media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`)
- Thumbnail ID helper → ID output: writes ID (evidence: `media/TrickPlayThumbnailsDASH/scripts/get_thumbid.py`)
