Live Streams
Configuring Twizzler Lives
Introduction
Our Live Stream system is NOT based on WebRTC, because it'd be extremely inefficient and slow for anything more than 5 concurrent viewers. We're using Livekit, which handles hundreds of concurrent viewers without breaking a sweat!
Setting up Livekit
Out of the box we usually leave our free API keys in as an example and for initial testing. This is a tutorial how to set up your own one, because with large numbers of viewers these might get drained pretty fast!
Register on Livekit
Head on to their official website and create a new account or login if you already have one!
Create an API key
Create an API key by navigating to Settings > API keys
and clicking Create key
. You can put any description you want, recommended for clarity - FiveM Live Streaming
Copy the Websocket URL, the API key and the API secret
And head to your phone files, high-phone/config/server.lua
and modify the following configuration:
liveKit = {
url = "Paste the Websocket URL here",
apiKey = "Paste your API key here",
apiSecret = "Paste your API secret here"
},
Last updated on