How mrbipbip/xtream-iptv-player-v3 works
Main Components
a. Client-Side Components:
• UI Layer
• Activities (Dashboard, Live Streams, VOD, EPG, Settings)
• Fragments
• Adapters
• Custom Views
• Player Components
• ExoPlayer Integration
• NST Player Implementation
• VLC Player Integration
• MX Player Integration
• Core Services
• EPG Service
• Streaming Service
• Authentication Service
b. Backend Integration:
• API Communication Layer
• Retrofit Client
• API Endpoints
• Callback Handlers
c. Data Management:
• Local Storage
• SQLite Database (DatabaseHandler)
• Cache Management
• Preferences Storage
Layer Structure (top to bottom)
[UI Layer]
• ↕
[Presenter Layer]
• ↕
[Business Logic Layer]
• ↕
[Data Layer]
• ↕
[Network Layer]
Key Relationships
• Player Integration Flow:
[UI Activities] → [Player Selection] → [Specific Player Implementation]
• ↓
• [Stream Handling]
• ↓
• [Media Playback]
• Data Flow:
[API Client] → [Data Models] → [Local Database] → [UI Components]
Component Details
Use these symbols:
• Cloud symbol for API endpoints
• Rectangles with rounded corners for services
• Straight rectangles for activities/fragments
Specific Features
• Authentication flow
• Live TV streaming
• VOD playback
• EPG synchronization
• Parental controls
• Category management
• Favorites system
• Search functionality
• UI components
• Business logic
• Data management
• Player implementations
• Network communication
This system design should reflect the complex nature of the IPTV player while maintaining clarity in showing how different components interact with each other.