https://livekit.io logo
Join Slack
Powered by
# helpdesk
  • c

    clever-kite-90169

    01/29/2021, 7:56 AM
    but the less i think about the better 🙂
  • c

    clever-kite-90169

    01/29/2021, 7:56 AM
    i'd assume most devs are pretty good web developers but not necessarily webrtc ppl
  • d

    dry-elephant-14928

    01/29/2021, 7:57 AM
    agreed.. client shouldn't have to worry about which one.. but the error should state as such
  • d

    dry-elephant-14928

    01/29/2021, 7:57 AM
    connected should mean ready to go..
  • d

    dry-elephant-14928

    01/29/2021, 7:57 AM
    i'll file an issue
  • w

    wonderful-manchester-12533

    01/29/2021, 6:15 PM
    yep I was seeing the same behavior regarding the offer negotiation as furqan
  • w

    wonderful-manchester-12533

    01/29/2021, 6:16 PM
    also some some other errors that seem to go uncaught ---
    OperationError: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Error processing ICE candidate
    this seems to be happening in
    client-sdk-js/src/room/RTCEngine.ts
    on line 115. I'm not sure if we're supposed to expect this to retry or not but the exception went uncaught ---
    InvalidStateError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable
    I've seen this a couple times. Looks like it could be happening on either line 106 or line 121 in the
    src/room/RTCEngine.ts
    file
  • w

    wonderful-manchester-12533

    01/29/2021, 6:17 PM
    and I'm experiencing the same issues as furqan as described on the 2:52AM message
  • d

    dry-elephant-14928

    01/29/2021, 6:29 PM
    cool, logging these.
  • d

    dry-elephant-14928

    01/29/2021, 6:30 PM
    I’m particularly curious about
    Failed to execute 'setRemoteDescription'
  • d

    dry-elephant-14928

    01/29/2021, 6:30 PM
    that seems to indicate a negotiation failure.. and could be detrimental to the connection
  • d

    dry-elephant-14928

    01/29/2021, 6:30 PM
    do you have any logs around it that you could share?
  • w

    wonderful-manchester-12533

    01/29/2021, 6:30 PM
    same here. Is it possible that we called
    connect
    twice? How could the sdp reach state
    stable
    ?
  • w

    wonderful-manchester-12533

    01/29/2021, 6:30 PM
    hmm let me see if I can gather some
  • w

    wonderful-manchester-12533

    01/29/2021, 6:31 PM
    on the client side? Or server?
  • d

    dry-elephant-14928

    01/29/2021, 6:31 PM
    on client
  • d

    dry-elephant-14928

    01/29/2021, 6:33 PM
    that might resolve the streams not subscribed issues
  • d

    dry-elephant-14928

    01/29/2021, 6:33 PM
    also try the latest 0.2.4 and see if that improves things for you.. it gets rid of a pretty core synchronization issue
  • w

    wonderful-manchester-12533

    01/29/2021, 6:34 PM
    trying 0.2.4
  • w

    wonderful-manchester-12533

    01/29/2021, 6:34 PM
    can already say that
    TrackSubscribed
    didn't fire consistently but we were eventually able to sync up
  • w

    wonderful-manchester-12533

    01/29/2021, 6:34 PM
    might be an issue on our end
  • w

    wonderful-manchester-12533

    01/29/2021, 6:34 PM
    any changes to the js client?
  • d

    dry-elephant-14928

    01/29/2021, 6:41 PM
    nope, our issues might still be there FWIW.. just thought 0.2.4 is an improvement
  • d

    dry-elephant-14928

    01/29/2021, 6:41 PM
    will still log & track down other issues.. whenever possible, upload logs here so it’s a bit easier to follow how it got to that state
  • w

    wonderful-manchester-12533

    01/29/2021, 6:43 PM
    cool sounds good
  • w

    wonderful-manchester-12533

    01/29/2021, 6:51 PM
    is there a reason why this function returns a list of `Publication`s?
    Copy code
    unpublishTracks(
        tracks: LocalTrack[] | MediaStreamTrack[]
      ): LocalTrackPublication[] {
        const publications: LocalTrackPublication[] = [];
        tracks.forEach((track: LocalTrack | MediaStreamTrack) => {
          const pub = this.unpublishTrack(track);
          if (pub) {
            publications.push(pub);
          }
        });
        return publications;
      }
  • w

    wonderful-manchester-12533

    01/29/2021, 6:51 PM
    line 182
    src/room/participant/LocalParticipant.ts
  • d

    dry-elephant-14928

    01/29/2021, 6:52 PM
    yes.. if you are using the server id to keep track of things
  • d

    dry-elephant-14928

    01/29/2021, 6:52 PM
    you can ignore it though
  • w

    wonderful-manchester-12533

    01/29/2021, 6:52 PM
    got it
1...101112...91Latest