How eyevinn/channel-engine works
Main Components
a. Core Engine Components:
• VOD2Live Converter
• Session Manager
• Stream Switcher
• State Management System
• Playhead Controller
• Subtitle Handler
b. Storage Components:
• Memory State Store
• Redis State Store (for HA)
• Memcached State Store
c. External Interfaces:
• HLS Input Sources (VOD/Live)
• HLS Output Stream
• API Layer
Key Architectural Elements
┌─────────────────────────────────────────────┐
• Client Layer │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• Load Balancer │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• Channel Engine Nodes │
• ┤
• ┌─────────┐ ┌──────────┐ ┌────────────┐ │
• Session │ │ Stream │ │ Playhead │ │
• Manager │ │ Switcher │ │ Controller │ │
• ┘ └──────────┘ └────────────┘ │
• ┌─────────┐ ┌──────────┐ ┌────────────┐ │
• Subtitle │ │ Event │ │ Preflight │ │
• Slicer │ │ Stream │ │ Handler │ │
• ┘ └──────────┘ └────────────┘ │
• ┘
• ↕
┌─────────────────────────────────────────────┐
• State Management │
• ┬─────────────┬────────────────┤
• Redis │ Memcached │ Memory │
• Store │ Store │ Store │
• ┴─────────────┴────────────────┘
• ↕
┌─────────────────────────────────────────────┐
• Input Sources │
• ┬─────────────┬────────────────┤
• HLS VOD │ Live HLS │ DRM VOD │
• ┴─────────────┴────────────────┘
Important Relationships to Highlight
• High-availability setup with Redis
• Flow from VOD/Live sources through the engine to output
• Demonstrate the state management interaction
• Session management flow
Additional Elements
• Component types
• Connection types
• State store options
• Supported formats (HLS+TS, HLS+CMAF)
• Node.js version compatibility
Technical Details to Note
• Support for both muxed and demuxed streams
• DRM handling capabilities (beta)
• WebVTT subtitle support
• Live stream mixing capability
• High availability configuration