jitsi / lib-jitsi-meet

A low-level JS video API that allows adding a completely custom video experience to web apps.
Apache License 2.0
1.34k stars 1.11k forks source link

"No participant for id" after removing track #859

Open webdif opened 5 years ago

webdif commented 5 years ago

Description

I have a webapp with one publisher and one subscriber.

  1. After creating connection (JitsiMeetJS.JitsiConnection).
  2. We get publisher devices (createLocalTracks).
  3. And we add these local tracks to the conference room (room.addTrack(track)).
  4. Subscriber is listening to events (TRACK_ADDED, TRACK_REMOVED).
  5. When publisher load the webapp, the subscriber receives and diplays the tracks. It works.
  6. When publisher close his browser window, this subscriber removes the tracks. It works.

Current behavior

An error like this comes up at step 6:

[modules/connectivity/ParticipantConnectionStatus.js] <ParticipantConnectionStatusHandler.onTrackRtcMuted>:  No participant for id: oq0jzywf

Expected Behavior

The track should be removed without errors.

Possible solution

No idea, but the app seems to try muting track, I don't know why. The error come from _onTrackMute().

  _createClass(JitsiRemoteTrack, [{
    key: "_bindMuteHandlers",
    value: function _bindMuteHandlers() {
      var _this2 = this;

      this.track.addEventListener('mute', function () {
        >>> return _this2._onTrackMute();
      });
      this.track.addEventListener('unmute', function () {
        return _this2._onTrackUnmute();
      });
    }

Environment details

React app on macOS.


Thanks a lot for your help 🙂 And congrats for this lib 👏

Jip-Hop commented 5 years ago

I encounter this issue as well when running lib-jitsi-meet/doc/example/index.html. Is there already a fix for this?

2019-10-25T11:34:45.021Z [modules/xmpp/strophe.util.js] <Object.i.Strophe.log>:  Strophe: TypeError: e.removeEventListener is not a function
    at https://meet.jit.si/libs/lib-jitsi-meet.min.js:22:70940
    at Array.forEach (<anonymous>)
    at t.value (https://meet.jit.si/libs/lib-jitsi-meet.min.js:22:70917)
    at t.value (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:235385)
    at c.onUserLeft (file:///Users/user/Downloads/lib-jitsi-meet-jitsi-meet_4021/doc/example/example.js:123:19)
    at c.emit (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:147431)
    at Y.onMemberLeft (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:294818)
    at c.emit (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:147431)
    at t.value (https://meet.jit.si/libs/lib-jitsi-meet.min.js:15:70070)
    at t.value (https://meet.jit.si/libs/lib-jitsi-meet.min.js:15:71243)
    at s.value (https://meet.jit.si/libs/lib-jitsi-meet.min.js:15:59171)
    at r.Handler.run (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:21541)
    at https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:29869
    at Object.forEachChild (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:13309)
    at r.Connection._dataRecv (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:29701)
    at e.Bosh._onRequestStateChange (https://meet.jit.si/libs/lib-jitsi-meet.min.js:6:49373)

2019-10-25T11:34:45.023Z [modules/xmpp/strophe.util.js] <Object.i.Strophe.log>:  Strophe: error: e.removeEventListener is not a function

2019-10-25T11:34:45.103Z [modules/connectivity/ParticipantConnectionStatus.js] <e.value>:  No participant for id: 8f4b6499
zsinba commented 4 years ago

我也遇到这个情况。 但并不耽误运行

jessicanevesmachado-zz commented 4 years ago

hello, I have the same error, is there a solution?

sapkra commented 4 years ago

@saghul This error is also occurring on meet.jit.si. Do you have an idea how to fix it?

Shotster commented 4 years ago

Just wanted to +1 this issue, as I'm seeing it as well - on both a custom integration using the Jitsi Lib API as well as on meet.jit.si when using the web interface, as @sapkra mentioned. It seems benign - i.e. no ill effects aside from the red text in the console - but it would be nice to resolve it. 😉

Boby commented 4 years ago

+1 on this, and I got disconnected every 20mins because of this error, anyway to fix on this?