https://livekit.io logo
Join Slack
Powered by
# sdk-native
  • a

    ambitious-magician-50109

    11/25/2025, 5:54 PM
    Hi everyone, I’m currently integrating Hedra Live Avatar together with LiveKit, OpenAI Realtime, and ElevenLabs, and we’re running into a recurring issue where the agent session closes immediately after the remote participant becomes ready. This is causing intermittent failures in our avatar session pipeline, and we'd appreciate guidance on what might be causing it. Below are the logs capturing the exact moment of failure. (Note: Logs labeled hedra-avatar-agent are our custom application logs. The rest are internal LiveKit/System logs). The key issue occurs between remote participant ready and shutting down job task. As you can see, the session is torn down less than a second after the participant is ready, triggering a close frame.
    Copy code
    backendpy  | 2025-11-19 15:59:37,560 - livekit.agents - DEBUG - waiting for the remote participant
    backendpy  | 2025-11-19 15:59:37,560 - livekit.agents - DEBUG - remote participant ready
    backendpy  | 2025-11-19 15:59:38,000 - livekit.agents - DEBUG - shutting down job task
    backendpy  | 2025-11-19 15:59:38,004 - livekit - DEBUG - tungstenite::protocol:666:tungstenite::protocol - Received close frame: Some(CloseFrame { code: Normal, reason: "" })
    backendpy  | 2025-11-19 15:59:38,005 - livekit - DEBUG - tungstenite::protocol:683:tungstenite::protocol - Replying to close with Frame { header: FrameHeader { is_final: true, rsv1: false, rsv2: false, rsv3: false, opcode: Control(Close), mask: None }, payload: [3, 232] }
    backendpy  | 2025-11-19 15:59:38,011 - livekit - WARNING - livekit::rtc_engine:453:livekit::rtc_engine - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume
    backendpy  | 2025-11-19 15:59:38,008 - livekit.agents - INFO - process exiting
    Here is another instance showing the side effects (WebSocket errors) caused by this abrupt disconnection:
    Copy code
    backendpy  | 2025-11-19 15:50:20,532 - livekit.agents - DEBUG - waiting for the remote participant
    backendpy  | 2025-11-19 15:50:23,002 - livekit.agents - DEBUG - shutting down job task
    backendpy  | 2025-11-19 15:50:23,003 - livekit - DEBUG - tungstenite::protocol:666:tungstenite::protocol - Received close frame: Some(CloseFrame { code: Normal, reason: "" })
    backendpy  | 2025-11-19 15:50:23,004 - livekit.agents - INFO - process exiting
    backendpy  | {"message": "process exiting", "level": "INFO", "name": "livekit.agents", "reason": "room disconnected", "pid": 73, "job_id": "AJ_LzkFJiyL2C3x", "timestamp": "2025-11-19T15:50:23.004822+00:00"}
    backendpy  | 2025-11-19 15:50:23,006 - livekit - DEBUG - tokio_tungstenite:355:tokio_tungstenite - websocket start_send error: WebSocket protocol error: Sending after closing is not allowed
    backendpy  | 2025-11-19 15:50:23,009 - livekit - INFO - livekit::room:1388:livekit::room - disconnected from room with reason: RoomClosed
    My main question: Can you clarify if the error
    signal client closed: "stream closed"
    is originating from a server-side timeout or some infrastructure instability? This behavior is intermittent, so it’s difficult to pinpoint. Any insights from the LiveKit team or others who have experienced this would be greatly appreciated.
  • s

    salmon-book-76481

    11/26/2025, 10:07 PM
    Hi Everyone, I'm developing a Flutter app and integrating LiveKit for video calls using the official example project from GitHub. During the connection process, I'm encountering an error. The app attempts to connect to the server and configures the ping, but then throws the following exception:
    Copy code
    [livekit] could not get connected server address TypeError: null: type 'Null' is not a subtype of type 'String'
    Here is the log leading up to the error:
    Copy code
    [livekit] prepareConnection to <wss://demo-eukecq5l.livekit.cloud>
    [livekit] ping config timeout: 15, interval: 5
    l
    • 2
    • 1
  • a

    ambitious-magician-50109

    11/27/2025, 3:10 PM
    Hi everyone 👋 We're experiencing a critical issue integrating Hedra Live Avatar + LiveKit Agents + OpenAI Realtime + ElevenLabs and need expert assistance. Support directed us here, but we haven't received responses yet. 🔴 The Problem: Our agent session closes immediately (<1 second) after the remote participant becomes ready, causing intermittent pipeline failures. The session teardown happens with
    signal client closed: "stream closed"
    error. 📊 Key Logs:
    Copy code
    2025-11-19 15:59:37,560 - livekit.agents - DEBUG - remote participant ready
    2025-11-19 15:59:38,000 - livekit.agents - DEBUG - shutting down job task
    2025-11-19 15:59:38,004 - livekit - DEBUG - Received close frame: Some(CloseFrame { code: Normal, reason: "" })
    2025-11-19 15:59:38,011 - livekit - WARNING - received session close: "signal client closed: \"stream closed\"" UnknownReason Resume
    ❓ Main Questions: 1. Is
    signal client closed: "stream closed"
    a server-side timeout or infrastructure issue? 2. Why would the session close immediately after participant ready? 3. Is this a known issue with the Hedra + LiveKit integration? 💰 We're Open to Paid Consulting: If anyone has experience solving this or similar issues with LiveKit Agents, we're happy to discuss paid consulting rates. Please DM me or respond here. Additional Context: • Behavior is intermittent (not every session) • Happens during the critical handoff between participant ready and agent start • Full logs available upon request Any guidance would be immensely appreciated. Time-sensitive project. Thanks in advance! 🙏
  • p

    proud-microphone-82200

    11/29/2025, 2:58 AM
    Hello -- just spent a couple hours failing to compile and pulling out my hair reading the readme in main for the python-sdk MediaDevices. Lol, then realised it hasn't been packaged into a release yet... Any idea when MediaDevices is going to make it to pypi? I need to write python cli with audio i/o and looks like this change will save me from writing a lot of code!
    l
    • 2
    • 3
  • b

    broad-agency-36763

    12/09/2025, 7:11 PM
    Hi Team, As we transition to expanding our feature to our native Flutter app, we are using the Flutter LiveKit SDK to create a meeting room-kind of live feature, but there are a few issues that we are facing while testing our feature. 1. First of all, when we have a lot of participants, let's say more than 20, and out of it we are subscribing to 5-6 participants' videos in the VideoQuality.LOW format, after 20-30 minutes the device starts heating up, which leads to audio loss and a lot of voice crackling. 2. Apart from that, we are also facing fast battery drainage when the device heats up. 3. We have simulcast and dynacast set to true while creating a room; alternatively, we are only subscribing to a max of 6 participants for video, and that too in lower qualities. 4. Alternatively, we are also facing one more issue where even if we are subscribing to a video, it shows a black screen sometimes and doesn't load the video stream. I think there was an issue similar to this on android and iOS SDKs. I am attaching the link to the thread here. Live Kit Flutter SDK Version :- 2.5.4 Please help us resolve these issues, as these are release blockers for us. CC :- @refined-caravan-84858
    r
    • 2
    • 4
  • b

    big-author-39928

    12/10/2025, 4:01 PM
    Hey guys, we are still consistently seeing iOS crashes caused by FrequencyTracker in our Expo app. I see there was a new SDK released 2.9.6, but was that only doc updates? I have raised this before, but still no progress, would be nice with some help to at least troubleshoot. Feels related to AudioSession, but I can conrifm we are setting it properly before starting the call. Any help here would be much appreciated, we have about 10 crashes per day in our prod app. @plain-wall-1315 (?) I have more code and logs to share. Our org is Giant (p_22vpm838v8x), we had 500M minutes last month https://giant-labs-inc.sentry.io/share/issue/8dd76b99e7c44fbf889748f53a3ee620/
    p
    • 2
    • 3
  • r

    refined-dinner-4989

    12/11/2025, 11:00 AM
    Hello, we are experiencing an audio issue in our application using the Flutter SDK Version: 2.5.3 We have been debugging it for a while but haven't been able to pinpoint the exact source, so we would appreciate your insight. Our system consists of Virtual Rooms within a single Room, and everyone is subscribed to each other via the Server SDK. We have confirmed that this subscription mechanism is working correctly. Our observations are as follows: 1. This problem only occurs on the Windows platform. 2. It is an "edge case" triggered when a user is left without subscribers (i.e., when no one else is listening in the room). 3. Even when the user gains listeners (subscribers) again, the audio stream does not resume, and the user continues to send 0 bytes. What do you think could be the source of this issue where the stream fails to resume on Windows after being subscriber-less?
    b
    • 2
    • 1
  • h

    hallowed-cpu-18192

    12/13/2025, 3:51 PM
    👋 Hello, team! My application is for watching videos with other users. When a user is watching a video and then turns on the microphone, the volume changes. It looks like the volume changes after the audio session category is changed. Can someone help me prevent the audio volume from changing? SDK version: 2.10.1 Xcode version: 26.1, 26.2
  • m

    many-printer-46539

    12/16/2025, 12:56 PM
    Hello team, I’m using the LiveKit Unity SDK. It works fine in the Unity Editor, but on an iOS device, I’m unable to hear the agent’s voice. I can see the agent’s logs in the transcript, and when I speak, my responses are also logged correctly. However, the agent’s audio is not playing on the iOS device. Has anyone faced a similar issue or can help me with this? Thank you.
  • i

    important-psychiatrist-73895

    12/16/2025, 11:23 PM
    Hi! on the iOS SDK, is there some notification or event I can hook into for detecting when a remote participant turns their video off? I don't see any of these events firing when remote participants turn their video off.
    • 1
    • 3
  • s

    strong-cricket-130

    12/18/2025, 8:44 AM
    👋 Hello, team! I am running on simulator with https:// url and facing with that issue Can we run in simulator?
    l
    • 2
    • 1
  • a

    adventurous-iron-64735

    12/19/2025, 9:54 AM
    Hello team! Subject: LiveKit Unity SDK hangs on
    yield return connect;
    in Android builds
    Description: I am experiencing a connection issue with the LiveKit Unity SDK specifically on the Android platform. While the connection logic works perfectly in the Unity Editor and Windows standalone builds, it fails to complete the connection process when running on an Android APK. Current Behavior: The execution hangs indefinitely at
    yield return connect;
    . The code never proceeds to the next line, and surprisingly, no error messages or exceptions are generated in the logs. Environment: • Unity Version: 6000.0.60f1 • LiveKit Unity SDK: Latest version • Target Platform: Android (APK) Steps Taken: 1. Verified that the URL and Token are correct (works on Desktop). 2. Ensured the device has an active internet connection. 3. The connection state remains stuck at "Connecting" without timing out or crashing.
    l
    • 2
    • 3
  • f

    fast-thailand-41521

    12/21/2025, 1:03 PM
    Sorry, this is probably not the right channel, but can someone tell me if https://github.com/livekit/client-sdk-unity-web/pulls is still active? How can I contribute to the repo with my PR? I have more to do, but if I'm just wasting my time, I'd be interested to know.
  • c

    crooked-cat-49161

    12/22/2025, 6:47 AM
    Hello team! repo: https://github.com/livekit/client-sdk-android request: Official Android SDK Build with Full Protobuf Support Could someone advise - what would be the best way to move forward with this request 👆
    l
    • 2
    • 3
  • f

    future-beard-52446

    12/26/2025, 2:13 AM
    @plain-wall-1315 Are you still following this issue? https://github.com/livekit/client-sdk-android/issues/284
  • g

    gifted-football-22847

    12/26/2025, 10:15 AM
    *Hi Team,*@better-house-11852 @able-flag-12349 @alert-easter-19258 We are facing connection quality drops during international sessions (India ↔️ overseas) for some calls, even though the user was on stable Wi-Fi. The connection quality fluctuated below 2, causing frequent resolution changes between (180×320 / 360×640 / 720×1280) and lag/buffering. Could you please check if this could be related to international routing or bandwidth estimation to the India region? please help us how can we solve this issue. We have a large overseas user base, and call drops are impacting revenue, so please help us resolving this issue would be greatly appreciated. We can share console logs and screenshots if needed. Thanks. https://cloud.livekit.io/projects/p_yd5wy5tlrza/sessions/RM_hdfpW7UxqvJQ/participants[…]WygnYSExMn5iISgnYyEndGltZXN0YW1wJ35kISdERVNDJ35lISgpKSldXw== cc: @early-petabyte-40211 @stale-hydrogen-54165
    • 1
    • 1
  • q

    quick-cricket-70531

    12/29/2025, 1:21 PM
    Hello team, We want to publish audio from an external Bluetooth device (PCM). The PCM is available in Android native code as a
    ShortArray
    . We do not want to use the device microphone. In
    @livekit/react-native
    , is there an official/supported API to: override WebRTC’s audio capture via a custom
    AudioDeviceModule
    , or • push raw PCM frames into the capture path (e.g., for
    LocalAudioTrack
    )?
    LiveKitReactNative.setup()
    appears to set the ADM internally—can it be replaced, and if yes, how?
  • t

    thousands-lock-99694

    12/29/2025, 5:41 PM
    Hey team! I’m trying to implement DTMF using the Swift SDK, but I can’t seem to find a way to do it. I noticed that the Android SDK has a
    publishDtmf
    method: https://github.com/livekit/client-sdk-android/blob/main/livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt#L1022C17-L1022C28 Am I missing something? Thank you!
    r
    • 2
    • 3
  • s

    stale-microphone-76591

    12/30/2025, 8:38 AM
    Hi everyone, apologies if this is not the right channel for this, but we are building a text to text communication with AI using livekit and trying to integrate with iOS native SDK. However this is what happens : Context We are using the LiveKit Android SDK for real-time chat-style messaging via
    publishData()
    . Below is the function we’re using:
    Copy code
    suspend fun sendText(text: String, topic: String = "lk.chat"): Boolean {
        Log.d("LiveKitManager", "canPublishData=" + room?.localParticipant?.permissions?.canPublishData)
        return try {
            val payload = text.toByteArray(Charsets.UTF_8)
            val res = room?.localParticipant?.publishData(
                data = payload,
                reliability = DataPublishReliability.RELIABLE,
                topic = "chat"
            )
            Log.d("LiveKitManager","The res is $res")
            res?.onFailure { Log.e("LiveKitManager", "publishData failed", it) }
            res?.isSuccess == true
        } catch (e: Exception) {
            false
        }
    }
    Observations 1.
    canPublishData
    is true for the local participant.
    publishData()
    returns a success result (no exception thrown). However, the data is not received on the remote participant side. The
    topic
    parameter passed to the function (
    "lk.chat"
    ) seems to be ignored, and the SDK examples/documentation often show
    "lk.chat"
    as a default topic. 1. Changing the topic value (e.g.,
    "chat"
    ,
    "custom"
    ) does not appear to affect delivery behavior. Environment • Platform: Android • LiveKit Android SDK (latest stable) • Room is successfully connected • Permissions verified on server side Would mean a lot if someone can guide us along in this.
    l
    • 2
    • 2
  • h

    handsome-winter-80038

    01/01/2026, 6:08 AM
    HI Team, Thank you for the LiveKit solution. I am using the .NET tech stack and developing a cross-platform internal enterprise instant messaging application based on AvaloniaUI and LiveKit. Currently, I am using WebView + JS SDK, and I am particularly interested in knowing when the .NET SDK is expected to be released.
  • c

    cool-businessperson-7526

    01/02/2026, 12:09 PM
    I try client-sdk-esp32, the sample project minimal, Here is the sample log: I (11542) AUD_PIPE_NEGO: Path mask 1 select sink:0 format 1398100047 I (11548) AUD_SRC: Get rate:16000, ch:1, bits:16 I (11553) ESP_GMF_TASK: Waiting to run... [tsk:aenc_0-0x3fcd33e0, wk:0x0, run:0] I (11559) I2S_IF: channel mode 2 bits:16/16 channel:4 mask:3 I (11559) livekit_example: Room state changed: Connected I (11565) I2S_IF: TDM Mode 0 bits:16/16 channel:4 sample_rate:16000 mask:3 I (11576) I2S_IF: channel mode 0 bits:16/16 channel:4 mask:3 I (11582) I2S_IF: STD Mode 1 bits:32/32 channel:4 sample_rate:16000 mask:0 I (11589) ES7210: Bits 16 I (11597) ES7210: Enable ES7210_INPUT_MIC1 I (11600) ES7210: Enable ES7210_INPUT_MIC2 I (11603) ES7210: Enable ES7210_INPUT_MIC3 I (11606) ES7210: Enable ES7210_INPUT_MIC4 I (11609) ES7210: Enable TDM mode I (11615) ES7210: Unmuted I (11615) Adev_Codec: Open codec device OK E (11615) MODEL_LOADER: Can not find model in partition table W (11620) AUD_AEC_SRC: No model to load W (11624) AFE_CONFIG: wakenet model not found. please load wakenet model... I (11674) AFE: AFE Version: (1MIC_V250121) I (11674) AFE: Input PCM Config: total 2 channels(1 microphone, 1 playback), sample rate:16000 I (11675) AFE: AFE Pipeline: [input] -> |AEC(SR_LOW_COST)| -> |VAD(WebRTC)| -> [output] I (11684) AUD_SRC: Start to fetch audio src data now I (11684) ESP_GMF_TASK: One times job is complete, del[wk:0x3c29bcbc, ctx:0x3c29ba48, label:aud_src_open] I (11697) ESP_GMF_PORT: ACQ IN, new self payload:0x3c29bcbc, port:0x3c2a0c00, el:0x3c29ba48-aud_src I (11706) ESP_GMF_AENC: Open, type:OPUS, acquire in frame: 640, out frame: 100 I (11713) ESP_GMF_TASK: One times job is complete, del[wk:0x3c314578, ctx:0x3c29bb24, label:aud_enc_open] The device connected to the room, but no voice output, and even I said somthing there is no related log changed in the console. I use default S3_Korvo_V2 board. The board is ok for mic and speaker My agent is working correct if I use the sandbox app. The embedded project is also setup with the sandbox configuration. Is there any suggestion I could find my embedded problem?
    r
    g
    • 3
    • 5
  • c

    cool-businessperson-7526

    01/02/2026, 2:52 PM
    I checked the agent log, it seems agent does not join in the room. Whether the ESP32 device conneciton is not succes, but from the log, it said the room is success created. Why the agent does not dispatched?
  • s

    steep-fireman-8880

    02/16/2026, 8:02 PM
    does anyone know sollution for this issue https://github.com/livekit/client-sdk-android/issues/853
  • w

    wooden-actor-49036

    02/16/2026, 8:31 PM
    Hi Team Rust SDK's support SIP? Because i couldnt find any docs + couldn't find something related in the source code
  • w

    wooden-actor-49036

    02/17/2026, 6:21 PM
    Any ideas?
  • w

    wooden-actor-49036

    02/17/2026, 6:22 PM
    FFI from golang not a solution)
  • l

    lively-winter-88668

    02/20/2026, 10:21 AM
    alert This channel is being sunset on 27th February 2026: alert
    Hi everyone, please be aware that we have a new community forum at community.livekit.io and the plan is to move support for this channel into that new forum. Please see full details here. The Slack community will remain, but we will do housekeeping of the technical channels after that date.
  • s

    steep-balloon-41261

    05/11/2026, 8:50 AM
    This message was deleted.
    ✅ 1
    t
    • 2
    • 1
  • o

    orange-activity-56584

    05/18/2026, 11:56 AM
    Does LiveKit client-sdk-swift support screen sharing on visionOS 26+? I didn't find any mention of this. In the demo app, it works only for iOS and macOS
    ✅ 1
    t
    • 2
    • 1
  • l

    lively-winter-88668

    05/27/2026, 8:48 AM
    archived the channel