# How It Works

## Roku VOD & Live Stream — Overview

```mermaid
%%{init: {'theme': 'base', 'themeVariables': {
  'primaryColor': '#1d4ed8',
  'primaryTextColor': '#ffffff',
  'primaryBorderColor': '#1e3a8a',
  'lineColor': '#1e293b',
  'secondaryColor': '#b45309',
  'secondaryTextColor': '#ffffff',
  'secondaryBorderColor': '#78350f',
  'tertiaryColor': '#15803d',
  'tertiaryTextColor': '#ffffff',
  'tertiaryBorderColor': '#14532d',
  'background': '#ffffff',
  'fontFamily': 'sans-serif',
  'fontSize': '14px',
  'edgeLabelBackground': '#e2e8f0',
  'clusterBkg': '#f1f5f9',
  'clusterBorder': '#94a3b8',
  'titleColor': '#0f172a'
}}}%%

flowchart TD

    CHURCH(["⛪ Church"])

    subgraph SERVER ["  Media Server  "]
        SYNC["🔄 Nightly Sync<br/>downloads new videos<br/>from YouTube & website"]
        LIBRARY[("📼 Video Library<br/>100+ sermons & studies")]
        SCHEDULE["📅 Weekly Schedule<br/>what plays when"]
        STREAM["📡 24/7 Live Stream<br/>continuous broadcast"]
    end

    subgraph ROKU ["  On Your Roku TV  "]
        APP["🏠 ABCC TV App<br/>main menu"]
        VOD["🎬 Watch a Sermon<br/>browse · pick · play"]
        LIVE["📺 Watch Live<br/>current broadcast"]
    end

    CHURCH -->|"videos published on YouTube & abcc.org"| SYNC
    SYNC --> LIBRARY
    LIBRARY --> APP
    LIBRARY -->|"plays according to"| SCHEDULE
    SCHEDULE --> STREAM
    STREAM -->|"live channel"| LIVE
    APP -->|"browse playlists"| VOD
    APP -->|"tap Watch Live"| LIVE
```

## VOD — On Demand

1. Open **ABCC TV** on your Roku
2. Browse playlists — Sunday Services, Bible Studies, Youth, Guest Speakers
3. Pick any sermon and watch it

New videos appear automatically the morning after they're published on the church website.

## Live Stream

The channel runs **24 hours a day, 7 days a week**.

The schedule follows a weekly pattern:

| Time | What plays |
|------|-----------|
| Sunday morning | Most recent Sunday service |
| Sunday afternoon | Youth ministry |
| Every evening | Devotional & worship content |
| Overnight | Repeat programming |

Special dates (holidays, events) can be scheduled in advance and override the weekly pattern automatically.
