Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gray box issue (hopefully) #39

Merged
merged 2 commits into from
Aug 19, 2018
Merged

Fix gray box issue (hopefully) #39

merged 2 commits into from
Aug 19, 2018

Conversation

karth295
Copy link
Contributor

No description provided.

This only works if you have configured
the Janus admin API. TODO(karth295): add
documentation on setting this up.
There were race conditions because sb[/connection] was
not necessarily initialized when it was used in initializing
janus. This commit avoids using statebus for non-react code,
and thus avoiding problems with accidentally using state before
it is defined.
@karth295
Copy link
Contributor Author

For posterity, this is the issue where some people cannot see each other. They occupy a gray square in a group, but nobody can see their video.

I believe the issue is a race condition: if you publish your feed before sb['/connection'].id is set, you'll end up publishing your stream as the user "undefined". Other participants won't know to publish your stream on the gray box for your user. I was able to repro the issue consistently before by just opening tawk in two tabs, and now I can't.

I've also added logging and debug state (sb['tawk/janus/sessions']) that can help us diagnose the issue if it comes up again in the future.

@karth295 karth295 merged commit d10fcf3 into master Aug 19, 2018
@karth295 karth295 deleted the janus-admin-info branch August 19, 2018 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant