Tutorial / Admin panels > Utilities
Media & Radio
Set your own volume for screens and radios, mute or hide them, and (superadmins) set Internet to Full or Restricted, control what screens and radios may play, and set up the TV Remote.
What it does
Screens and radios play what Cinema Owners, DJs and admins put on: YouTube, YouTube Music, Spotify, and (by the server's Internet setting) web pages, video and audio files and internet radio streams. This panel has two parts.
The top part is yours. It sets your volume, mutes screens and radios for you, hides videos, or stops everything playing for you right now. These settings are saved on your computer and affect nobody else.
The bottom part is the server's settings. Superadmins set Internet for screens and for radios (Full or Restricted, with a list of allowed sites), turn screens, radios and each source on or off, and set the range and the device limits.
Internet: Restricted plays YouTube, YouTube Music and Spotify (each with its own switch) and the sites on the server's list. Internet: Full plays any public website: screens show any web page (Twitch, Vimeo, a site's own player) or a video / audio file (mp4, webm, ogv, mov, mp3, ogg, wav, m4a, flac...) in a player of their own, and radios play any stream or audio link. Every nearby player's game opens the link, so the site sees their address: use Full on servers where you trust your Cinema Owners and DJs. Links to local or private addresses (localhost, 192.168..., 10..., router names) never play, in either mode.
Where to find it
Q menu > KGX's Admin Toolbox > Utilities > Media & Radio.
- Your own settings: everyone.
- Server (superadmins) section: shown to everyone, changeable by superadmins only.
Screens and radios are placed with Building > Media Player and Building > Radio (admins, plus Cinema Owner and DJ jobs), or bought in stores.
The panel
Your settings
| Option | What it does | Default | Range |
|---|---|---|---|
| Volume | Your volume for screens and radios. | 0.8 | 0-1 |
| Mute screens and radios | No sound from screens and radios for you. | Off | |
| Show no videos on screens (and play nothing from them) | Screens show no video and play nothing for you. | Off | |
| Screens volume (times the volume above) | kgxat_media_volume_video. |
1 | 0-1 |
| Radios volume (times the volume above) | kgxat_media_volume_audio. |
1 | 0-1 |
| See where others point on screens | kgxat_media_show_cursors: others' cursors (with their names) on screens they use. |
On | |
| Screens show YouTube's whole page (not only its player) | kgxat_media_youtube_page: YouTube as its normal page (header, title, suggestions) instead of only the player filling the screen. |
Off | |
| Key to use the screen you look at | kgxat_media_cursor_key: starts / stops using the aimed screen with the cursor (E works too). |
none | |
| Show the screens I hid and unmute the ones I muted | Undoes Hide for me / Mute for me (they last until you leave). | ||
| Adjust the TV Remote in my hand | Sliders that move, turn and size the remote you hold (first person and as others see it), live. | ||
| Stop everything now | Stops everything screens and radios are playing for you. |
Server (superadmins)
| Option | Setting | Default | Range |
|---|---|---|---|
| Media players (screens) work | kgxat_media |
On | |
| Radios work | kgxat_radio |
On | |
| Screens: Internet | kgxat_media_internet: 0 = Restricted, 1 = Full |
Restricted | 0-1 |
| Screens' sites, then Apply | kgxat_media_sites: other sites screens may play from while Restricted, comma separated (a site allows its subdomains). |
vimeo.com, twitch.tv, dailymotion.com, archive.org | |
| Radios: Internet | kgxat_radio_internet: 0 = Restricted, 1 = Full, -1 = as before v3.6.12.1 (Full while the radio sites box is empty, Restricted when it lists sites) |
-1 | -1-1 |
| YouTube | kgxat_media_youtube |
On | |
| YouTube Music | kgxat_media_ytmusic |
On | |
| YouTube Movies in the browser | kgxat_media_ytmovies |
On | |
| Radios: internet radio streams / audio links (and Stations) | kgxat_radio_stream |
On | |
| Spotify (30 second previews without an account) | kgxat_radio_spotify (screens too since v3.6.12.1) |
On | |
| Radios: the sound of YouTube links | kgxat_radio_youtube |
On | |
| Players may use pages with the cursor (shared live; who: each device's setting) | kgxat_media_input |
On | |
| Who may use a new device's page | kgxat_media_click_default: 0 only its owner, 1 owner and admins, 2 also the owner's job, 3 everyone |
Me and admins | 0-3 |
| The most an owner may allow | kgxat_media_click_max (superadmins may always) |
Everyone | 0-3 |
| Farthest range an owner may set | kgxat_media_range_max (units) |
4000 | 300-10000 |
| Sharpest page a screen may use | kgxat_media_res_max: 0 = 960 x 540, 1 = 1280 x 720, 2 = 1920 x 1080 |
1920 x 1080 | 0-2 |
| Only Cinema Owner / DJ jobs (and admins) play their own things | kgxat_media_jobs_only |
On | |
| The TV Remote works | kgxat_remote |
On | |
| It shows a laser pointer (everyone sees it) | kgxat_remote_laser |
On | |
| How far it reaches | kgxat_remote_range (units) |
3000 | 200-10000 |
| Who may have one | kgxat_remote_who: 0 every player (not those blocked), 1 toolbox admins only |
Every player | 0-1 |
| Blocked list, Block a player..., Unblock the selected player | Toolbox admins: players who may not have a TV Remote (remote_blocked.json). They lose it at once and cannot spawn, buy, be given or pick one up. Superadmins cannot be blocked. |
empty | |
| How far away screens show and are heard | kgxat_media_range (units) |
1500 | 300-6000 |
| Screens (and radios) per player | kgxat_media_max_user |
1 | 0-20 |
| Per admin | kgxat_media_max_admin |
2 | 0-50 |
| Per superadmin | kgxat_media_max_super |
10 | 0-100 |
| Apply the numbers above | Sends the four sliders to the server. | ||
| Radio sites, then Apply | kgxat_radio_hosts: sites streams and audio links may come from while radios are Restricted, comma separated. A site also allows its subdomains. |
empty |
The device limits count screens and radios separately.
How to use it
Turn screens down or off for yourself
- Open Utilities > Media & Radio.
- Drag Volume down, or tick Mute screens and radios.
- To also hide the picture, tick Show no videos on screens (and play nothing from them).
Let screens play any site
- As a superadmin, set Screens: Internet to Full.
- A Cinema Owner (or admin) presses E on their screen and pastes any link: a Twitch channel, a Vimeo video,
https://example.com/movie.mp4. Or opens Browser, goes to the page and clicks Play this here. - Files play in a plain player that follows the channel's play / pause / seek. Web pages play as they are (the page's own video follows play / pause and volume).
Allow only some sites
- Set Screens: Internet (or Radios: Internet) to Restricted.
- Type the sites in the box below it, for example
vimeo.com, twitch.tv(radios:somafm.com, radio.co), and click Apply. - Links from those sites (and their subdomains, e.g.
ice1.somafm.com) play; others are refused with the list of what is allowed. YouTube, YouTube Music and Spotify follow their own switches.
Use a screen with the cursor (everyone sees it)
- Press E on a screen that plays something (or your own key, if you set one).
- Your cursor appears. Over the screen it is drawn on the screen itself, exactly where a click lands (a ring shows each click). Others see your cursor with your name. Click links and buttons, scroll with the mouse wheel, click a text box and type. Everyone watching that channel sees the same thing, live.
- While you use it, a toolbar along the bottom of the screen has Back, Forward, Reload and Home (back to what the owner put on), and an address bar if the owner allowed it.
- Clicking another video, pausing or seeking on the page changes the channel for everyone: the server follows what the page did.
- Your own bar at the bottom: Stop (Esc), Fullscreen video (the page's biggest video fills the screen, for everyone; again to go back), Mute for me, Hide for me, and Controls if it is yours. Esc, a click off the screen, or walking away stops.
- A page's own fullscreen button (YouTube, Vimeo, Twitch...) also works: the video fills the screen. In the Browser window it fills the window.
- If the owner did not let you, you get "View only": you can still mute or hide it for yourself.
Change a device's settings (owners and admins)
- Press E on your screen or radio and click Settings in the control bar.
- General: the channel / station name, the screen size.
- Picture (screens): brightness, page sharpness (960 x 540 / 1280 x 720 / 1920 x 1080), Fit (16:9 with bars) or fill, Web pages: their video fills the screen, the title along the top, Glow (lights the room in front of it).
- Sound: volume, range (0 = the server's), and loudness by distance: Smooth, Even, Close only, or Full volume to the edge.
- Interaction: who may use the page (only me / me and admins / my job / everyone, up to the server's limit), typing, scrolling, the buttons and address bar, others' cursors.
- Changes wait until you click Apply (or Apply and close); the bottom line counts the changes not applied yet. Then they apply at once for everyone. Close without applying drops them. Kept devices (admin tools, "Keep for this map") keep their settings.
Use the TV Remote
- Get it from the spawn menu (Weapons > ATB > TV Remote), a store selling it, or a job's weapons.
- You hold it like a pistol (only the remote shows). A red laser goes from it to where you aim; others see it. Right click turns your laser on / off.
- Point at a TV, screen or radio up to the remote's range and left click: it is the same as pressing E on it. On a screen playing something you get the cursor on the screen; the owner gets the control bar; on a radio its window opens.
- The same rules as E apply: who may use the page, who may change things. You stay in reach while you hold the remote.
Block a player from having a TV Remote
- Open Utilities > Media & Radio as a toolbox admin.
- Under TV Remote, pick the player in Block a player.... They lose their remote at once.
- Select them in the list and click Unblock the selected player to allow it again.
Find a radio station
- Press E on your radio (as a DJ or admin) and click Stations (also in the Browser's top bar).
- The most played stations are listed. Type a name or a style (rock, jazz, news) and press Search.
- Double-click a station: it plays on your radio. While radios are Restricted, only stations from the allowed sites are listed.
Let only jobs broadcast
- Keep Only Cinema Owner / DJ jobs (and admins) play their own things ticked.
- Give a job the Cinema Owner or DJ ability in Settings > Jobs. Other players' screens and radios tune in to their channels.
Tips and limits
- YouTube and most video sites need the game's newer browser (Chromium, with video codecs). If videos stay black or silent, switch Garry's Mod to the x86-64 branch (Steam > Garry's Mod > Properties > Betas). The end of the version line at the bottom right shows each player's game build and branch.
- Since v3.6.12.1 YouTube plays from its watch page made to fill the screen: YouTube's embedded player refuses pages a game browser opens ("Error 153"). Skippable ads are skipped; while an ad plays, the channel's time is not forced. At the end, YouTube does not go on to another video.
- A radio link that is not an audio stream (a station's web player, a page) plays as a hidden web page in each player's game; its sound is not 3D (it gets quieter with distance).
- Pressing E on a radio that plays something opens its window: its page (YouTube, Spotify, a station's web player) to use like a screen, or what the stream plays. Back / Forward / Reload / Home and Address are there when the owner allows them.
- Nothing keeps playing once a device is turned off, removed or out of range: every page and stream is checked ten times a second, also after a Lua reload; if the media code hits an error, everything stops and the error is shown in the console.
- A window that cannot open (settings, radio window, browser, Stations) says so and puts the details in the console.
- Shared clicks are replayed on each player's own copy of the page, so a page that differs per player (signed in, ads, cookies) can end up in a different state; Home or the owner's control bar puts everyone back. Dragging (sliders, drawing) and pages inside other pages' frames may not respond.
- The remote points where you aim, buttons up, its back end in your palm. Each player can adjust it with Adjust the TV Remote in my hand (or the console command
kgxat_remote_adjust): sliders for first person and for how others see it (forward / right / up, pitch / yaw / roll, size), shown at once. Saved askgxat_remote_fp_pos,_fp_ang,_fp_scale,kgxat_remote_tp_pos,_tp_ang,_tp_scale. - A screen farther away than its range shows no picture, so the remote works on screens within their range (radios: anywhere within the remote's range).
- The Stations list comes from radio-browser.info, a free public station list; if it cannot be reached, paste a stream link instead.
- Without an account, Spotify plays 30 second previews.
- Bought or rented movies, and sites that need you to sign in or click first, may not play.
- Screens farther away than the range show no picture and are not heard.
- Store devices are sold through the Electronics Store preset (TV, Cinema Screen, Radio).