# 2. Streaming (Apollo + Moonlight)

If you followed the [VM Setup](https://github.com/BDO-PxielBot/pixelbot-gitbook/blob/main/configuration/1.-virtual-machine), streaming is already working. This page helps you get the best quality and fix common issues.

> **Moonlight** is the app on your PC that shows the VM screen. **Apollo** is the server inside the VM that sends the video. Both were installed automatically.

***

## Moonlight Settings

Open Moonlight, click the gear icon, and use these settings:

| Setting      | Value        |
| ------------ | ------------ |
| Resolution   | 1920 x 1080  |
| FPS          | 60           |
| Video Codec  | H.265 (HEVC) |
| Bitrate      | 50 Mbps      |
| Window Mode  | Fullscreen   |
| V-Sync       | OFF          |
| Frame Pacing | OFF          |

> **Important**: The resolution in Moonlight must match your `config.json` (default 1920x1080). The bot captures what Moonlight shows on screen.

***

## Apollo Dashboard

You can manage the streaming server from your browser:

1. Run **OpenApolloUI.ps1** — it opens the dashboard automatically
2. Login: `pixel` / `pixel`
3. From here you can check connections, manage paired devices, and view logs

> The browser will warn about the certificate — that's normal, click **Advanced** > **Proceed**.

***

## How It Works

When you open Moonlight and connect to the VM, Apollo automatically creates a virtual screen inside the VM. You don't need to configure anything — it just works.

* Screen appears when Moonlight connects
* Screen disappears when Moonlight disconnects
* Resolution follows your Moonlight settings

***

## Troubleshooting

| Problem                  | What to do                                                                                                                                 |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Black screen             | Wait 5-10 seconds — the virtual display needs a moment to start                                                                            |
| No audio                 | Inside the VM, set **VB-Audio Virtual Cable** as default audio device                                                                      |
| Laggy / high latency     | Make sure you're not on WiFi. Wired connection works best                                                                                  |
| Poor image quality       | Increase bitrate to 80+ Mbps in Moonlight settings                                                                                         |
| Moonlight says "Offline" | Make sure the VM is running in Hyper-V Manager                                                                                             |
| Can't connect at all     | Try the [manual pairing steps](https://github.com/BDO-PxielBot/pixelbot-gitbook/blob/main/configuration/1.-virtual-machine#manual-pairing) |

***

## Need Help?

Join our [Discord](https://discord.gg/3pMUfYXjra) for support!
