# Cast console server
Run the console server on a Windows computer on the same network as the ChromeCast device and use the interface on https://cast.jko.cloud/
## Casting images
Adjust the `config.json` file as needed.
* Set the local path of your image folder in the `directory` property.
* Optionally, select a different port with the `port` property. This will require loading the cast page with url parameter pointing at the same port, e.g. `https://cast.jko.cloud?port=1234`
* Optionally adjust the `imageTypes` list of file suffixes. The file types must be compatible with a generic HTML `<img>` tag source to be cast.

## Casting audio
To enable casting audio, set `"audio": true` in `config.json`.

Audio casting requires an input audio interface to read an audio stream from. To list all available input audio interfaces, set `"inputDeviceId": -1` and run the server.
This will output a list of all interfaces and audio casting will still be off.

Select the desired audio interface id from the list and set the `inputDeviceId`. Restart the server and refresh the cast website.
It will now be possible to enable and disable casting of audio.

## Debugging
To enable verbose logging, set `"verbose": true` in `config.json`.