quick-vr-30902
10/07/2025, 8:31 PMlistIngresses or create ingress? livekit-server-sdktall-airline-16756
10/07/2025, 8:31 PMtall-airline-16756
10/07/2025, 8:32 PMlistIngresses and createIngress operations! These are supported by several LiveKit server-side SDKs to make your experience smoother:
• Go SDK: Here, you can use the CreateIngress and ListIngress methods via the IngressClient.
• Ruby SDK: This offers create_ingress and list_ingress methods through the IngressServiceClient.
• Node.js (TypeScript) SDK: You'll find createIngress and listIngress methods within the IngressClient class.
• Python SDK: This provides asynchronous methods create_ingress and list_ingress in the IngressService class.
Just a quick note: to use these operations, your SDK needs to be authenticated with ingressAdmin permissions. If you have any questions or need help setting this up, feel free to ask—I’m here to help!
Sources: Stream import | LiveKit Docs | ingressclient.go | lib/livekit/proto/livekit_ingress_pb.rb | packages/livekit-server-sdk/src/IngressClient.ts | livekit-api/livekit/api/ingress_service.pyquick-vr-30902
10/07/2025, 8:33 PMtall-airline-16756
10/07/2025, 8:33 PMIngressClient class from the livekit-server-sdk. Let me walk you through the steps:
1. Install the SDK: Simply run npm install livekit-server-sdk to get started.
2. Initialize the IngressClient: Use your LiveKit server URL, API key, and secret like this:
import { IngressClient, IngressInput } from 'livekit-server-sdk';
const ingressService = new IngressClient(
<LIVEKIT_SERVER_URL>, // Replace with your LiveKit server URL
'your-api-key',
'your-api-secret'
);
1. Create Ingress: Use the createIngress method with the input type and options you need. For example, to create an RTMP ingress:
const ingressInfo = await ingressService.createIngress(IngressInput.RTMP_INPUT, {
name: 'My RTMP Ingress',
roomName: 'my-room',
participantIdentity: 'host-user',
participantName: 'Host (via OBS)',
video: {
source: TrackSource.CAMERA,
preset: IngressVideoEncodingPreset.H264_1080P_30FPS_3_LAYERS,
},
audio: {
source: TrackSource.MICROPHONE,
preset: IngressAudioEncodingPreset.OPUS_STEREO_96KBPS,
},
});
console.log('RTMP URL:', ingressInfo.url);
console.log('Stream Key:', ingressInfo.streamKey);
There are also options to create WHIP or URL-based ingress depending on what fits your needs best. Feel free to ask if you'd like me to share more details or examples for those — I’m here to help!
Sources: Webhooks | LiveKit Docs | README.md | Stream import | LiveKit Docs | Self-hosting the Ingress Service | LiveKit Docsquick-vr-30902
10/07/2025, 8:46 PMquick-vr-30902
10/07/2025, 8:46 PMtall-airline-16756
10/07/2025, 8:47 PMlistIngress in the Node.js LiveKit SDK, you can simply call the listIngress() method on an instance of the IngressClient. Here’s a friendly example to guide you through:
import { IngressClient } from 'livekit-server-sdk';
const ingressClient = new IngressClient(
<LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
'your-api-key',
'your-api-secret'
);
// To list all ingress entries
const allIngresses = await ingressClient.listIngress();
console.log(allIngresses);
// To list ingress entries for a specific room
const ingressByRoom = await ingressClient.listIngress({ roomName: 'my-room' });
console.log(ingressByRoom);
// To list a specific ingress by ID
const ingressById = await ingressClient.listIngress({ ingressId: 'ingress_12345' });
console.log(ingressById);
You have the flexibility to filter results by roomName or ingressId, or simply list all ingress entries if you don’t apply any filters. If there’s anything else you’d like to explore or if you have questions, feel free to ask—I’m here to help!
Sources: packages/livekit-server-sdk/src/IngressClient.ts | Stream import | LiveKit Docstall-airline-16756
10/07/2025, 8:47 PMlistIngress in the Node.js LiveKit SDK! You can simply call the listIngress() method on an instance of the IngressClient. This method will fetch a list of ingress entries, and you have the option to filter them by room name or ingress ID if you'd like.
Here’s a friendly example to get you started:
import { IngressClient } from 'livekit-server-sdk';
const ingressClient = new IngressClient(
<LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
'your-api-key',
'your-api-secret'
);
// To list all ingress entries
const allIngresses = await ingressClient.listIngress();
console.log(allIngresses);
// To list ingress entries for a specific room
const ingressByRoom = await ingressClient.listIngress({ roomName: 'my-room' });
console.log(ingressByRoom);
// To list a specific ingress by ID
const ingressById = await ingressClient.listIngress({ ingressId: 'ingress_12345' });
console.log(ingressById);
Feel free to filter your results by passing in roomName or ingressId as parameters. If you have any questions or need a hand with anything else, just let me know—I’m here to help!quick-vr-30902
10/07/2025, 8:58 PMtall-airline-16756
10/07/2025, 8:58 PMquick-vr-30902
10/07/2025, 9:00 PMtall-airline-16756
10/07/2025, 9:01 PMdeleteIngress method, which just needs one thing from you:
• `ingressId`: This is the unique identifier for the ingress you want to delete.
Here’s a simple example to guide you:
import { IngressClient } from 'livekit-server-sdk';
const ingressClient = new IngressClient(
<LIVEKIT_SERVER_URL>, // Just replace this with your LiveKit server URL
'your-api-key',
'your-api-secret'
);
// Delete an ingress by ID
await ingressClient.deleteIngress('INGRESS_ID');
Just a few important things to keep in mind:
• Deleting an ingress is permanent, so please double-check before you proceed.
• You’ll need to delete each ingress one at a time, as batch deletion isn’t supported.
• If you prefer, you can also use the LiveKit CLI or send direct HTTP requests to the Twirp API, but they also require the ingressId.
If you have any questions or want me to walk you through more examples, just let me know—I’m here to help!
Sources: Stream import | LiveKit Docs | livekit-api/src/services/ingress.rs | cmd/lk/ingress.go | ingressclient.go | lib/livekit/proto/livekit_ingress_twirp.rbquick-vr-30902
10/07/2025, 9:40 PMtall-airline-16756
10/07/2025, 9:40 PMCreateIngress API or SDK, the RTMP URL for LiveKit ingress is generated for you. The IngressInfo object you receive will include the full RTMP URL along with the stream key. For example, it might look something like rtmp://my.domain.com/live/ingress-test.
Here are some important details to keep in mind:
• Default RTMP Port: This is set to 1935 by default, but you can customize it in your ingress service configuration if needed.
• Base RTMP URL: If you’re running a self-hosted deployment, you can set the base RTMP URL in your config.yaml file under the ingress section like this:
ingress:
rtmp_base_url: "rtmp://my.domain.com/live"
For those using LiveKit Cloud, the ingress service comes pre-configured, and you can easily get the RTMP URL and stream key right from the CreateIngress response or by using the ListIngress API.
If you have any questions or need a hand with anything else, just let me know—I’m here to help!
Sources: Stream import | LiveKit Docs | pkg/rtmp/server.go | config-sample.yamltall-airline-16756
10/07/2025, 9:40 PMcreateIngress method, the system generates this URL for you. You'll find it included in the returned IngressInfo object, which contains the full RTMP URL and stream key. For example, it might look like rtmp://your-livekit-host/live/stream-key.
Here are some important details to keep in mind:
• Default Port: The default RTMP port is 1935.
• Custom Port: If you're self-hosting, you have the flexibility to set a custom port in the LiveKit server's config.yaml file under the ingress section.
• LiveKit Cloud: If you're using LiveKit Cloud, the RTMP URL is good to go right away—no extra setup needed.
Please feel free to reach out if you'd like a hand with creating an ingress or tweaking your server configuration. I'm here to support you every step of the way!quick-vr-30902
10/07/2025, 9:43 PMtall-airline-16756
10/07/2025, 9:43 PMIngressInfo object might be empty for a few common reasons. Let’s walk through them together:
1. Incorrect `inputType`: Make sure that when you’re creating the ingress, the inputType is set to RTMP_INPUT (which has the value 0). Other types like URL_INPUT or WHIP_INPUT won’t generate an RTMP URL.
2. Missing `rtmp_base_url`: Check your config.yml file and add this under the ingress section if it’s not there:
ingress:
rtmp_base_url: "rtmp://your-domain.com/live"
1. Self-hosting configuration: Please ensure that the rtmp_base_url points to an external endpoint that’s accessible, and that your ingress service is running smoothly and connected properly to Redis.
2. Validation issues: Double-check that the ingress has a valid participantIdentity, a room name, and a non-empty streamKey.
3. Check the ingress state: You can use the ListIngress API to confirm the ingress was created successfully and to get the latest info.
From what you’ve shared, it seems the rtmp_base_url might be missing in your configuration file. Adding it and restarting your server should do the trick! If you run into any more questions or need a hand with this, just let me know—I’m here to help!
Sources: pkg/service/ingress.go | livekit/livekit_ingress.pb.go | Encoder configuration | LiveKit Docs | pkg/params/params.go | Stream import | LiveKit Docsquick-vr-30902
10/08/2025, 7:54 PMtall-airline-16756
10/08/2025, 7:54 PMconfig.yml for LiveKit Ingress, here’s what you’ll need to include:
port: 7880
log_level: trace
redis:
address: "127.0.0.1:6379"
db: 0
rtc:
udp_port: 7882-7890
stun_servers:
- "stun:stun.l.google.com:19302"
keys:
APIDKaNxqYK8fUD: "FTfQXuaTzdbSUCbOiramDCKtLuSer4Vb5W5rI5wyeSDA"
ingress:
rtmp_base_url: "rtmp://your-domain.com/live"
Just a quick reminder to replace your-domain.com with your actual domain or IP address where your LiveKit server is hosted. The rtmp_base_url is really important because it’s what generates the RTMP URL for each ingress.
About the RTMP URL in the IngressInfo object:
• The url field is unique to each ingress and is created by adding a specific stream key to the rtmp_base_url. For example, if your base URL is rtmp://your-domain.com/live and your stream key is abc123, the full RTMP URL becomes rtmp://your-domain.com/live/abc123.
• This setup makes sure every ingress has its own distinct endpoint for media ingestion.
If you have any questions or need a hand with anything else, please don’t hesitate to reach out—I’m here to help!
Sources: test/rtmp.go | Encoder configuration | LiveKit Docsquick-vr-30902
10/08/2025, 7:58 PMtall-airline-16756
10/08/2025, 7:59 PMquick-vr-30902
10/08/2025, 8:00 PMtall-airline-16756
10/08/2025, 8:00 PMquick-vr-30902
10/08/2025, 8:06 PMquick-vr-30902
10/08/2025, 8:21 PMquick-vr-30902
10/30/2025, 6:57 PM