# renaudallard/etincelle_receiver architecture

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

- Interactive diagram: https://gitdiagram.com/renaudallard/etincelle_receiver
- Repository: https://github.com/renaudallard/etincelle_receiver

## Overview

Etincelle Receiver is a Google Cast Web Receiver for Molotov/Fubo playback, used as a fallback when the native streamer is unavailable. Its documented workflow is to receive cast media and customData, load and play the stream, keep credentials out of reported status, and provide playback, track, and ad-break controls. The README describes substantial ad detection from manifests, thumbnails, captions, and segment boundaries. No source excerpts or source index were provided, so internal modules and most call relationships cannot be verified; the graph reflects documented behavior only.

Main entry points: [`index.html`](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html) (Web Receiver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_playback["Playback and security"]
  node_receiver["Web Receiver<br/>[index.html]"]
  node_caf["Cast CAF"]
  node_status_sanitization["Status credential filtering<br/>[index.html]"]
end

subgraph group_controls["Playback controls"]
  node_track_selection["Audio and subtitle selection<br/>[index.html]"]
  node_remote_controls["On-screen remote controls<br/>[index.html]"]
end

subgraph group_ad_detection["Ad-break detection"]
  node_break_detection["Ad-break detection<br/>[index.html]"]
end

node_sender(("Cast sender"))
node_stream["Molotov / Fubo stream"]
node_drm["DRMtoday license"]
node_manifest["Stream manifest"]
node_thumbnails["Channel thumbnails"]
node_captions["Caption tracks"]
node_segment_data["Video segments"]
node_recording_sheets["Recording image sheets"]

node_sender -->|"sends media data"| node_receiver
node_receiver -->|"loads media"| node_caf
node_caf -->|"plays stream"| node_stream
node_receiver -->|"adds license header"| node_drm
node_receiver -->|"strips credentials"| node_status_sanitization
node_receiver -->|"offers track choices"| node_track_selection
node_receiver -->|"handles remote input"| node_remote_controls
node_receiver -->|"finds ad breaks"| node_break_detection
node_break_detection -->|"reads break markers"| node_manifest
node_break_detection -->|"checks pictures"| node_thumbnails
node_break_detection -->|"checks captions"| node_captions
node_break_detection -->|"checks black frames"| node_segment_data
node_break_detection -->|"checks recordings"| node_recording_sheets

click node_receiver "https://github.com/renaudallard/etincelle_receiver/blob/main/index.html"
click node_status_sanitization "https://github.com/renaudallard/etincelle_receiver/blob/main/index.html"
click node_track_selection "https://github.com/renaudallard/etincelle_receiver/blob/main/index.html"
click node_remote_controls "https://github.com/renaudallard/etincelle_receiver/blob/main/index.html"
click node_break_detection "https://github.com/renaudallard/etincelle_receiver/blob/main/index.html"

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_receiver,node_caf,node_status_sanitization toneBlue
class node_track_selection,node_remote_controls toneAmber
class node_break_detection toneMint
class node_sender,node_stream,node_drm,node_manifest,node_thumbnails,node_captions,node_segment_data,node_recording_sheets toneIndigo
```

## Components

### Playback and security

- [Web Receiver](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html): `index.html`
- **Cast CAF**
- [Status credential filtering](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html): `index.html`

### Playback controls

- [Audio and subtitle selection](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html): `index.html`
- [On-screen remote controls](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html): `index.html`

### Ad-break detection

- [Ad-break detection](https://github.com/renaudallard/etincelle_receiver/blob/main/index.html): `index.html`

### Other components

- **Cast sender**
- **Molotov / Fubo stream**
- **DRMtoday license**
- **Stream manifest**
- **Channel thumbnails**
- **Caption tracks**
- **Video segments**
- **Recording image sheets**

## Connections

- Cast sender → Web Receiver: sends media data (evidence: `README.md`)
- Web Receiver → Cast CAF: loads media (evidence: `README.md`)
- Cast CAF → Molotov / Fubo stream: plays stream (evidence: `README.md`)
- Web Receiver → DRMtoday license: adds license header (evidence: `README.md`)
- Web Receiver → Status credential filtering: strips credentials (evidence: `README.md`)
- Web Receiver → Audio and subtitle selection: offers track choices (evidence: `README.md`)
- Web Receiver → On-screen remote controls: handles remote input (evidence: `README.md`)
- Web Receiver → Ad-break detection: finds ad breaks (evidence: `README.md`)
- Ad-break detection → Stream manifest: reads break markers (evidence: `README.md`)
- Ad-break detection → Channel thumbnails: checks pictures (evidence: `README.md`)
- Ad-break detection → Caption tracks: checks captions (evidence: `README.md`)
- Ad-break detection → Video segments: checks black frames (evidence: `README.md`)
- Ad-break detection → Recording image sheets: checks recordings (evidence: `README.md`)
