Manual
How Live voice and video is configured in NetCrafter Relay 2.0. Everything lives in the NetCrafter Relay window: Tools → Pivec Labs → NetCrafter Relay → Settings.
Live has no editor window of its own any more. It uses Relay's Relay Settings (per Definition) and Relay's Server Setup Wizard, plus one Live tab for setup. One server serves both game sessions and voice/video.
Relay Settings#
Live components read their TURN/rendezvous details from a Relay RelaySettings asset through their connectionSettings field. Each Definition has its own (Definitions/<Name>/RelaySettings.asset), edited in Settings → Relay Settings with that Definition selected. Point a Live component at the same Definition your game uses: in its Inspector, pick it under Use Definition and click Assign Relay Settings.
The fields (Relay Host, Relay Port, Rendezvous URL, TURN Username, Shared Secret) are described in the NetCrafter Relay Manual. Live adds one setting, in the Live Settings (Voice & Video) box at the bottom of the same tab:
| Field | Default | Description |
|---|---|---|
| Android Video RTX Workaround | On | Strips RTX from the video part of every SDP the Live components create, so video sent from Android displays on Windows receivers (a com.unity.webrtc issue). Trade-off: a lost video packet waits for the next keyframe instead of being retransmitted. Ignored by the game relay. |
The Live demo scenes use the LiveDemo Definition; the Live-in-game demos use TurnBasedDemo and CharacterDemo.
Live (Voice & Video) tab#
Always available, even before Live is enabled:
- Unity WebRTC package — shows whether
com.unity.webrtc3.0.0+ is installed and installs it in one click. Until it is, everything underNetCrafterRelay/LiveandExamples/LiveDemosis not compiled (it's gated onNETCRAFTER_WEBRTC), so Relay-only projects never break. - Server — a reminder that Live needs the 2.0 rendezvous service (re-run the wizard once on a 1.x server).
- Demo scenes — buttons for the 1-to-1 Call, Host Broadcast, TurnBased + Video Chat and Character + Broadcast Screen demos.
Server Setup Wizard#
Live uses Relay's wizard (Settings → Server Setup Wizard). The rendezvous service it installs handles game join codes and Live call signalling on the same port (8787 by default). Its Finish step writes the results into the selected Definition's Relay Settings. Full details: NetCrafter Relay Manual and Server Deployment Guide.
Upgrading a 1.x server? Run the wizard against it once and choose Update / redeploy. Your port, credentials and database are kept; the new service adds Live signalling. Game sessions keep working on a 1.x server, but Live calls need the 2.0 service.
Using Live inside a Relay game#
Add NetCrafterLiveRelayLink next to a NetCrafterLiveConnection and/or NetCrafterLiveBroadcast. It listens to Relay's events and needs no code:
- When the game is hosted (
RelayHosting), it starts the call or broadcast under the game's join code. - When a player joins (
RelayJoined, new in 2.0), it joins the call or broadcast with that same code. - When the game connection is lost, it hangs up.
Players never see or type a second code. The call component is 1-to-1, so only the player whose Relay id matches callPartnerUserId (default 1, the first to join) joins a call; broadcasts have no such limit. Turn off autoStart to drive it yourself with StartLive() / StopLive(). See API Reference and the TurnBased Video Chat and Character Broadcast tutorials.