mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
feat(remote-control): add channel selection by number and volume control features
- Implemented `getChannelItemByNumber` utility function to retrieve channels by their number. - Enhanced `StalkerLiveStreamLayoutComponent` and `LiveStreamLayoutComponent` to handle remote control commands for channel selection and volume adjustments. - Updated typings to include new remote control commands and status updates. - Refactored `RemoteControlComponent` to manage numeric input for channel selection and volume control actions. - Improved UI for remote control with new volume and channel navigation features. - Added service methods for volume up, down, and mute toggle in `RemoteControlService`.
This commit is contained in:
1 parent
620ecb7518
commit
7c9db4bc7d
14 files changed
+1100
-400
No files matched your search
@@ -12,6 +12,9 @@ This is a standalone Angular application designed to be served by IPTVnator's El
|
||||
- **Mobile-Optimized** - Touch-friendly interface designed for phones and tablets
|
||||
- **Real-time Control** - Instant channel switching via REST API
|
||||
- **Multi-Portal Support** - Works with M3U playlists, Xtream Live TV, and Stalker ITV sections
|
||||
- **Numeric Channel Input** - Enter channel numbers directly from the web remote
|
||||
- **Live Status Panel** - Displays active channel and current EPG program when available
|
||||
- **Volume Controls** - Volume up/down/mute when the active player supports remote volume
|
||||
- **Minimal & Fast** - Lightweight app (~55 KB compressed) with no external dependencies
|
||||
- **Responsive** - Adapts to different screen sizes (320px - 480px+)
|
||||
|
||||
@@ -34,7 +37,7 @@ This is a standalone Angular application designed to be served by IPTVnator's El
|
||||
|
||||
1. **HTTP Server**: Electron backend starts an HTTP server (default port: 8765)
|
||||
2. **Static Files**: Serves this Angular app's built files
|
||||
3. **REST API**: Exposes `/api/remote-control/channel/up` and `/api/remote-control/channel/down` endpoints
|
||||
3. **REST API**: Exposes channel/volume/status endpoints for the web remote
|
||||
4. **IPC Communication**: HTTP server sends events to the main Electron window
|
||||
5. **Channel Switching**: Main app receives events and switches to next/previous live channel in the active live view
|
||||
|
||||
@@ -43,6 +46,11 @@ This is a standalone Angular application designed to be served by IPTVnator's El
|
||||
- `GET /` - Serves the remote control web interface
|
||||
- `POST /api/remote-control/channel/up` - Switch to previous channel
|
||||
- `POST /api/remote-control/channel/down` - Switch to next channel
|
||||
- `POST /api/remote-control/channel/select-number` - Switch by channel number
|
||||
- `POST /api/remote-control/volume/up` - Increase volume
|
||||
- `POST /api/remote-control/volume/down` - Decrease volume
|
||||
- `POST /api/remote-control/volume/toggle-mute` - Toggle mute
|
||||
- `GET /api/remote-control/status` - Get current playback status for remote UI
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Reference in new issue
Block a user