How sh9351/ktv works
Main Components
a. Core Application Layer:
• Electron Main Process (index.js)
• Renderer Process (views/tv.html)
• IPC Communication Bridge
b. Channel Management Layer:
• Channel Provider System (providers.js)
• Channel Manager (src/channels.js)
c. Feature Modules:
• Mobile Remote Control Server (Port 30514)
• Recording System (MediaRecorder + ts-ebml)
• UI Components
┌─ Application Layer ─────────────────────┐
• Electron Main Process │
• (index.js) │
• ┬───────────────────────┘
┌────────────────▼───────────────────────┐
• Channel Management Layer │
• providers.js │
• channels.js │
• ┬───────────────────────┘
┌────────────────▼───────────────────────┐
• UI Layer (Renderer Process) │
• tv.html │
• Frontend Assets │
• ┘
Data Flow Representation
• Channel data flow from providers to UI
• IPC communication between main and renderer processes
• Mobile remote control commands
• Recording system data flow
External Integration Points
Connections to:
• Official broadcaster websites
• Naver TV
• Other external sources
• Mobile remote control clients
Technical Details
• Port specifications (30514 for remote control)
• File formats (webm for recording)
• Key technologies (Node.js, Electron, MediaRecorder)
• DHCP address detection system
The integration with external broadcast sources
Remember to include a small section showing the application lifecycle and channel refresh mechanism, as these are critical operational aspects of the system.