question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TRACK_REMOVED Event Fired Too Late

See original GitHub issue

Description

When disconnecting from a JitsiConnection and opening a new one without refreshing, the HTML audio tag for other users stays in the HTML and gets removed when the TRACK_REMOVED event is fired exactly 16 seconds after the CONNECTION_DISCONNECTED event is fired.

If the disconnecting user decides to join the initial room again in between these 16 seconds, the HTML audio tags of the other users in the initial room gets removed (after the 16 seconds passed), so you are unable to hear anyone else.

Current behavior

Calling the disconnect function of the JitsiConnection and creating a new JitsiConnection with a new Jitsi serviceUrl causes the HTML audio track to be removed 16 seconds after the CONNECTION_DISCONNECTED event.

Expected Behavior

When receiving the CONNECTION_DISCONNECTED event, I expect the TRACK_REMOVED event to be fired as soon as possible. Or, to have a configuration to set the delay between these events.

Possible Solution

  • Make delay between CONNECTION_DISCONNECTED event and TRACK_REMOVED configurable.

Steps to reproduce

  • Join a jitsi room
  • Disconnect from the jitsi room (without reloading the page)
  • Join the jitsi room again before 16 seconds pass

Environment details

An environment in which you can dynamically join or leave a Jitsi room is required.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ckeinercommented, Feb 28, 2022

I was finally able to try it out. It seems to do the trick or at least show further error messages. They are most likely also related to how we are switching rooms. I will close this issue for now and open new ones should I think I have found another bug.

Thank you very much for the help @saghul 😃

0reactions
saghulcommented, Feb 23, 2022

Or do you mean that we first have to call JitisConference.leave() before disconnecting? That is not something we do first. Let me try it out.

Yes, that’s what you should be doing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Track Removed Fired Too Late - Jitsi Community Forum
I have two question regarding this: Since the TRACK_REMOVED event is always fired after 16 seconds, it sounds like a configureable value but...
Read more >
Local participant's 'trackUnpublished' event not fired · Issue #656
It seems that the trackUnpublished event is not being fired for the local participant whenever unpublishing a local video track (didn't test ...
Read more >
Google Analytics Event firing too often - Stack Overflow
Caching? Using the secondary dimensions, I cannot find any data that tells me what or who is triggering this event on almost every...
Read more >
Ext.data.Store | Ext JS 6.5.0 - Sencha Documentation
trackRemoved : Boolean. This config controls whether removed records are remembered by this store for later saving to the server. Defaults to:
Read more >
MediaStream: removetrack event - Web APIs | MDN
The removetrack event is fired when a new MediaStreamTrack object has been removed from a MediaStream.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found