Rubylight Download 7.0.3
On this page
  1. Joining
  2. Invite a friend over the internet
  3. What a guest may do
  4. Kick, block and expiry
  5. Where to manage guests
  6. How the picture reaches each guest
  7. Privacy
  8. For developers

Guests from other devices #

Rubylight docs › Play together

Several people can play one game on the PC from their own paired devices. While one device plays (the owner), a second paired device that joins the running game becomes its guest. The guest sees the same picture and hears the same sound, gets a controller of its own as the next player, and gets the keyboard and mouse only if the owner grants them. Nightjar on Android and desktop and stock Moonlight clients can all join; the owner answers on their own device, or anyone with access answers in the console.

Guests are paired devices. To share a stream with someone in a browser without pairing, use browser guests instead.

Joining #

A device joins the running game in either of these ways:

What happens next follows When another device joins the running game (guest_join, under Settings → Games → Play together):

Value What happens
Ask the player (ask) The join waits up to 45 seconds while the owner's Nightjar and the console's Home page show the request. Let in starts the guest's stream; Deny, or no answer, refuses it with the reason.
Let in without asking (allow) The device joins at once with What a guest may do. The owner can still change, kick or block it.
Off (off, default) The device streams beside the game with its own device permissions, as before guests existed. One person moving between their own devices joins or resumes without anyone answering.

A join is refused with a reason the client shows:

Moonlight clients show the text in their launch error.

Nightjar waits up to 120 seconds for a join answer. Moonlight clients that give up on a launch sooner than 45 seconds show their own timeout instead. In that case, answer sooner or switch to Let in without asking.

Invite a friend over the internet #

A friend who has never been on your network can join with Nightjar on Android, Windows, Linux or macOS. No PIN, no port forwarding and no visit are needed:

  1. Make an invite. In the console, Invite a friend on Home, under the Guests card; or, in your own Nightjar during a stream, the Guests page of the Control Center, then Invite a friend over the internet. Making one needs Approve new devices or Host control on that device.
  2. Send the link to one person. It looks like rubylight://invite#…. Many chat apps don't make such a link clickable, so the friend can also copy it and paste it under Add PC in Nightjar.
  3. The friend opens it and confirms Join. Nightjar finds the PC over the internet (its IPv6 address, a forwarded port, or a path punched through both routers, as Play over the internet does), pairs as a guest without a PIN, and lists the PC. This can take up to a minute.
  4. The friend joins your game: they select the game you play and press Join, and you let them in as any guest.

What an invite gives, and what it doesn't:

The link is a secret, like a key to a guest seat: anyone who holds it before your friend uses it can join in their place, as a guest you still let in. Send it only to the friend, and take it back in the console if it went astray. Everything after # stays on the devices that open it: a browser never sends it to a website.

What a guest may do #

What a guest may do (guest_permission, default controller) is the permission a guest gets when the owner lets it in without choosing one. The owner can change it for each guest at any time.

Permission The guest gets
View only (view) The picture and sound. Its controller, keyboard and mouse are ignored, and no controller of its own is plugged in on the PC: a guest made view only loses the ones it had.
Controller (controller) A virtual controller of its own, as the next player. Its keyboard and mouse are ignored.
Controller, keyboard and mouse (controller-keyboard-mouse) Also the keyboard and mouse, one holder at a time (see below). It also gets the clipboard, USB forwarding and its microphone, where its own device permissions allow them.

A guest's touch and pen input is always ignored: on the PC they act as a mouse. A guest never gets more than its own device permissions allow.

One keyboard and mouse at a time #

Only one person types and moves the pointer at a time:

When a guest loses the keyboard and mouse, the host releases any key or button it still held down. Controllers are not part of this rule: every controller plays at once.

The PC's own mouse and keyboard are watched only while a guest with keyboard and mouse is streaming.

Kick, block and expiry #

A guest that loses its connection keeps its place and can come back.

Where to manage guests #

How the picture reaches each guest #

Each guest gets its own encoder on the owner's capture. The guest's stream shares the virtual display the game is on, as Stream here too always has. It takes that display as it is and never changes the display's mode, HDR or scale. The capture is shared between streams of that display, so the GPU captures once. Each stream encodes it at its own codec, size, frame rate and bitrate.

We chose this over sending every viewer one shared encoded stream because:

The cost is one more encoder session per guest. A 4K guest takes about as much encoder time as a second 4K stream. A guest at a lower resolution takes proportionally less. The host allows at most 4 guests besides the owner, so the encoder sessions stay within what the drivers allow.

Sound reaches each guest like any second stream of the PC.

Privacy #

See also Privacy.

For developers #

View this page on GitHub