Skip to content

Commit 45967f8

Browse files
committed
fix broadcast example
1 parent 81d8b46 commit 45967f8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/broadcasts/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ This example shows how to parse live [CSTV broadcasts](https://developer.valveso
44

55
## Running the example
66

7-
1. `cs2 -dedicated -port 27016 +sv_setsteamaccount <GSLT> +game_type 0 +game_mode 1 +sv_hibernate_when_empty 0 +map de_overpass`
8-
2. After startup: `tv_delay 0; tv_broadcast_url "http://localhost:8080"; tv_broadcast 1`
7+
1. `node cstv.js`
8+
2. `LD_LIBRARY_PATH=".../game/bin/linuxsteamrt64:$LD_LIBRARY_PATH" cs2 -dedicated -port 27016 +sv_setsteamaccount 0F81C7E09971B48600F6642E21183EEC +game_type 0 +game_mode 1 +sv_hibernate_when_empty 0 +map de_overpass`
9+
3. After startup: `tv_delay 0; tv_broadcast_url "http://localhost:8080"; tv_broadcast 1`
910
-> `http://localhost:8080/<token>`
10-
3. Check the broadcast works by running `playcast "http://localhost:8080/<token>"` in your game client - NOTE: the double quotes around the URL are strictly required
11-
4. `go run broadcasts.go -url "http://localhost:8080/<token>"`
11+
4. Check the broadcast works by running `playcast "http://localhost:8080/<token>"` in your game client - NOTE: the double quotes around the URL are strictly required
12+
5. `go run broadcasts.go -url "http://localhost:8080/<token>"`
1213

1314
### Sample output
1415

0 commit comments

Comments
 (0)