Skip to content

Remote & library ​

The remote is the panel that drives a surface. Open it with E (rebindable, Open surface remote) or /remote near a surface, through the ox_target option, the np_menu Screen remote option on a TV, or the remote item. It opens for the nearest surface you may view. What it offers depends on your capabilities: a view-only player sees what is on and nothing else.

The remote on a TV with Now playing, Up next and Library tabs

The header shows the surface, how many players are watching and who is in control (the last player who drove it). Keys while it is open: Esc closes, Space plays / pauses, ← / → seek 10 seconds.

Now playing ​

For YouTube and video files:

  • Artwork, title, author ("added by …") and a seek bar with elapsed and remaining time.
  • Previous, back 10 s, play / pause, forward 10 s, skip.
  • Volume, and the toggles Loop, Shuffle, Autoplay, Mute for me (only for you) and captions.
  • Up next with the first entries of the queue, and a link field: pasting a link while something plays adds it to the queue instead of replacing the screen.
  • The … menu: Copy link, Report…, Edit board (on canvas surfaces), Clear screen and Stop.

The … menu with Copy link, Report, Edit board, Clear screen and Stop

A player with view only gets the title and a note that they can watch but not control the screen.

The read-only remote

Playable and embedded content ​

This decides what the remote can do and whether two players see the same frame.

Content Behaviour
Synced YouTube (watch, youtu.be, shorts and live links or a raw id) and direct video files The server owns playing, start time, paused position, duration, volume, loop and the queue per content and routing bucket. Clients take the position from a synced server clock and seek back when they drift more than Config.DriftTolerance. Full transport and queue. Sound comes from the screen and fades with distance
Synced slide index Google Slides, PDFs, mirrored slide decks Previous / next / go to slide, the ← / → slide keys and the presenter view. Everyone sees the same slide. No play / pause
Shown, not driven Twitch, Vimeo, Docs, Sheets, images and web pages Each player's browser runs its own copy. No shared position and no transport. Muted by default (Config.Media.muteEmbeds); sound comes from Config.Audio (xsound or the NUI fallback) and won't line up with the picture

Autoplay needs a duration. The remote finds a video's length with a hidden player and reports it to the server. The server only arms the end-of-video timer for a video that isn't looping and has a known duration. Anything else needs a manual skip.

Up next ​

The queue with drag handles and a menu: Play now, Move to top, Move to bottom, Remove

The queue is first in, first out, with the time left in total. Drag entries to reorder them (or Alt + ↑ / ↓), and use the … menu for Play now, Move to top, Move to bottom and Remove. Queue changes need present.

Slides ​

On a deck the Now playing tab shows the deck, the slide counter, previous / next, Go to slide # and Open presenter view. On a canvas surface the Board section has Edit board and Clear board.

The remote on a Google Slides deck

Library ​

The Library tab: a link preview with Add to queue and Play now, the kinds this screen can show, channels and recent items

  • Link preview: paste a link to see the provider, title, author and thumbnail (from oEmbed for YouTube and Vimeo, the channel name for Twitch, the file name for files), a start time from ?t=, and whether this screen accepts it. Then Add to queue or Play now.
  • What this screen can show: the providers the surface allows. Locked tiles are kinds its allowedKinds refuses.
  • Channels: server-curated one-tap tiles from Config.Library.channels, with an optional LIVE badge and an optional job filter. A playable channel is queued and played (needs present). Anything else replaces what the surface shows (needs edit).
  • Recent & favourites: the last links you played or set, per character, and the ones you starred.
  • Playlists: your own playlists, plus shared ones from other players on surfaces where you may present. Play queues the whole list, Add current adds what is on, and the owner can rename, share or make private and delete.

Playlists: Play, Add current, Rename, Make private, Delete

Reports ​

Report… in the … menu sends the current content with a reason. Staff get an np_admin staff notification, and every online player with np_screens.admin gets a toast. The report is written to the audit log. One report per player per reportCooldown seconds.

Content safety ​

Every link is checked before it is previewed, played or set:

  • blockedDomains: hosts (and their subdomains) refused everywhere.
  • allowedDomains: when not empty, only these hosts (and their subdomains) are accepted.
  • The surface's allowedKinds.
  • Outbound fetches (metadata, mirrored images and slides) are screened for private and loopback addresses, follow no redirects and are capped at Config.MaxFetchBytes.

Every action from the remote is checked again on the server (capability, range and the per-player rate limit Config.RateLimit), so a modified client gets a panel but no extra powers.

Config ​

config/remote.lua:

Key Default Meaning
historySize 50 Recent entries per character
maxFavourites 100 Favourites per character
maxPlaylists 20 Playlists per character
maxPlaylistItems 50 Entries per playlist
blockedDomains {} Hosts refused for preview, play and set
allowedDomains {} Allowlist mode when not empty
reportCooldown 30 Seconds between two reports from the same player
channels Lo-fi Radio, Weazel News One-tap tiles, see below
lua
Config.Library.channels = {
    {
        id = 'weazel', label = 'Weazel News', subtitle = 'Press RP',
        icon = 'newspaper',  -- Font Awesome 6 solid name without "fa-"
        tint = 'red',        -- red orange rust pink olive lilac green blue aqua
        url = 'https://www.twitch.tv/weazelnews',
        live = true,         -- LIVE badge
        jobs = { 'reporter' }, -- optional: only these jobs see the tile
    },
}

The remote's range, slide keys and remote item are in Config.Remote (see Configuration).