# XBC Remote Controller

Remote control plugin for XSplit Broadcaster that allows you to start and stop recordings from any device on your local network.

## Quick Start

### 1. Start the Server

**Option A: Install as Windows Service (Recommended)**

1. Navigate to the `server` folder
2. Right-click `install-service.bat` and select **Run as administrator**
3. The script will:
   - Download NSSM (Non-Sucking Service Manager) if needed
   - Install the server as a Windows service named "XSplit Remote Server"
   - Configure the service to start automatically on boot
   - Start the service immediately
4. The service will now run in the background and start automatically on system boot
5. To remove the service later, run `uninstall-service.bat` as administrator

**Option B: Run Manually**

1. Navigate to the `server` folder
2. Double-click `xbc-remote-server.exe` to start the server
3. The server will run in a console window - you can minimize it, but keep it running

**Note:** The server runs on port 80 by default and may require administrator privileges on Windows.

### 2. Load the Plugin in XSplit Broadcaster

1. Open XSplit Broadcaster
2. Go to **Extensions** menu
3. Click **Add Custom Extension**
4. Navigate to and select `plugin/Broadcaster Remote.html`
5. The extension window should open and connect to the server

### 3. Use the Remote Control

- Access the remote UI from any device on your local network
- The server URL will be displayed in the extension (e.g., `http://192.168.1.100`)
- Open this URL in a web browser on any device (phone, tablet, or another PC)
- Use the web interface to start and stop recordings

## Troubleshooting

- **Extension shows "Disconnected"**: Make sure the server is running
- **Cannot connect from remote device**: Ensure both devices are on the same network and the firewall allows connections on port 80
- **Port 80 requires administrator privileges**: Run the server as administrator if needed
