CSTV lets you broadcast games live with a short delay. This means that people who aren't playing can also follow what's happening on the server. This technology is also used at well-known Counter-Strike tournaments so viewers can watch the action. Broadcasts can also be saved automatically, so you can watch them again later.
You can enable CSTV in ZapX using the startup parameters:
- Open the Configuration tab for your game server and select Startup parameters.
- Turn on Enable CSTV. If you want your server to automatically record every match, also turn on Record CSTV demos.
- Save your settings and restart your server.
tv_enable and tv_autorecord in your server.cfg have no effect. Your server sets these values from the startup parameters each time a map starts, including the CSTV port (tv_port).
Add other CSTV commands to the server.cfg file in the csgo/cfg folder using the Files tab, for example:
tv_delay 90
tv_advertise_watchable 1
If your mode's game mode file sets a command itself, its value takes precedence over the one in server.cfg. For example, gamemode_competitive.cfg sets tv_delay. Add such commands to gamemode_<modus>_server.cfg. Learn more in Configuration.
These commands are available:
| Command | Description |
|---|---|
| tv_allow_camera_man "0|1" | Allows spectators to take over as camera operators |
| tv_allow_static_shots "0|1" | Uses fixed cameras for recordings |
| tv_autoretry "0|1" | Attempts to reconnect after a network timeout |
| tv_chattimelimit "Seconds" | Limits spectators to sending a message only every x seconds |
| tv_debug "0|1" | Displays CSTV debug information |
| tv_delaymapchange "0|1" | Delays the map change until the broadcast is complete |
| tv_maxclients "n" | Maximum number of clients on the CSTV server |
| tv_maxrate "n" | Maximum bandwidth allowed for CSTV spectators, 0 = unlimited |
| tv_msg "Text" | Sends a message to all spectators |
| tv_name "Name" | CSTV hostname. Sets the CSTV name shown in the server browser and status bar |
| tv_nochat "0|1" | Enables/disables CSTV chat |
| tv_password "Password" | Protects the CSTV broadcast with a password |
| tv_record "Filename" | Starts recording a CSTV demo |
| tv_stop | Stops the CSTV broadcast |
| tv_stoprecord | Stops recording a CSTV demo |
| tv_title | Sets the name of the CSTV broadcast |
ZapX assigns the CSTV port for your server. You can find it in the Overview section of your game server, under Server details and More ports. To connect, open the in-game console and enter this command:
connect SERVERIP:CSTVPORT
Replace SERVERIP with your server's IP address and CSTVPORT with the CSTV port.
Your server moves completed demos to the csgo/demos folder, whether they were recorded automatically or with tv_record. You can find and download them in the Files tab. A demo that is still being recorded will appear there shortly after the recording ends. Alternatively, you can download demos via FTP. See Access via FTP for instructions.
To watch a demo, place it in the game/csgo folder in your CS2 game directory and start it from the console with playdemo <dateiname>.
