cool-student-55742
10/23/2025, 6:55 AMtall-airline-16756
10/23/2025, 6:55 AMtall-airline-16756
10/23/2025, 6:56 AMLocalParticipant through the room.localParticipant property once you've connected to a room. This object represents you, the current user, and it’s automatically created as soon as your connection is successful.
For instance, if you're using the Flutter SDK, you can get to it with Room.localParticipant. In other SDKs like JavaScript and Android, it's just as straightforward—simply access the localParticipant field on the room.
The LocalParticipant object is really handy because it lets you do things like publish your audio or video tracks, update your participant metadata, and manage events such as track publication or permission changes. If you have any questions while working with it, feel free to ask—I’m here to help!
Sources: livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local... | pkg/rtc/types/interfaces.go | Core Platform Architecture & Authentication | livekit/livekit_composite | D... | lib/src/participant/local.dart | JavaScript SDK & React Components | livekit/livekit_composite | DeepWikicool-student-55742
10/23/2025, 6:58 AMtall-airline-16756
10/23/2025, 6:58 AMpublishDtmf method on the localParticipant object. This method takes a numeric code and a string digit (like "1", "#", or "*").
Here’s a simple example in Python to get you started:
await ctx.room.local_participant.publish_dtmf(
code=1,
digit="1"
)
Just a quick note: make sure your LiveKit setup includes SIP functionality, since DTMF signals are mainly used in telephony scenarios. Also, the participant needs to be connected to a LiveKit room before sending these signals.
If you have any questions or would like more examples, please don’t hesitate to ask—I’m here to help!
Sources: Handling DTMF | LiveKit Docs | Building an Automated IVR Menu Caller | LiveKit Docs | Make outbound calls | LiveKit Docs | sip-refer/README.mdoc | livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local...cool-student-55742
10/23/2025, 7:00 AMtall-airline-16756
10/23/2025, 7:00 AMpublishDtmf method on the localParticipant object, as long as the participant is connected to a room.
Here's a quick example in Python to guide you:
await room.local_participant.publish_dtmf(code=1, digit="1")
This will send the DTMF signal directly, and any SIP participants in the room will pass it along to the connected telephone user. If you'd like, I’m here to provide more details or examples—just let me know!
Sources: livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local... | src/room/participant/LocalParticipant.ts | livekit/src/room/participant/local_participant.rs | sip-refer/README.mdoc | Make outbound calls | LiveKit Docscool-student-55742
10/23/2025, 7:03 AMtall-airline-16756
10/23/2025, 7:09 AMpublishDtmf method on the localParticipant object. The exact way to import this depends on the SDK and language you're working with. Here are some friendly examples to guide you:
Python SDK:
from livekit import rtc
await room.local_participant.publish_dtmf(
code=1,
digit="1"
)
Node.js SDK:
const { Room } = require('livekit-client');
// After connecting to a room
room.localParticipant.publishDtmf(1, "1");
Android SDK (Kotlin):
val result = localParticipant.publishDtmf(
code = 1,
digit = "1"
)
Just make sure you’ve imported the right LiveKit SDK for your platform. If you have any questions or need a hand with a specific SDK, feel free to ask—I’m here to help!
Sources: sip-refer/README.mdoc | SIP overview | LiveKit Docs | Building an Automated IVR Menu Caller | LiveKit Docs | README.md | Handling DTMF | LiveKit Docscool-student-55742
10/23/2025, 7:14 AMtall-airline-16756
10/23/2025, 7:15 AMcool-student-55742
10/23/2025, 7:33 AMtall-airline-16756
10/23/2025, 7:34 AMget_job_context() function to get the JobContext, which includes helpful details about the room, participants, and API client. Similarly, in Node.js, the getJobContext() function gives you access to the current context.
That said, this context is only accessible inside agent job functions—not in standalone scripts or client apps. If you're working outside of an agent environment, please feel free to share your specific use case with me. I’d be happy to help you explore other options that might work better for your needs!
Sources: Tool definition and use | LiveKit Docs | docs/functions/LiveKitRoom.html | lib/src/context/room_context.dart | Shared/Contexts/RoomContext.swift | Agent Testing & CI/CD | livekit/livekit_composite | DeepWikicool-student-55742
10/23/2025, 10:48 AMtall-airline-16756
10/23/2025, 10:49 AMlivekit_models.proto). Also, RTP and RTCP packets give you media transport and control info like jitter, packet loss, and round-trip time (RTT).
If you’d like, I’m here to help you analyze or decode any specific parts of the PCAP file—just let me know!
Sources: livekit-protocol/livekit/protocol/models.pyi | lib/livekit/proto/livekit_models_pb.rb | Protocol & WebRTC Stack | livekit/livekit_composite | DeepWiki