Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Juliusz Chroboczek <jch@irif.fr>
To: Jeroen van Veen <jvanveen@protonmail.com>
Cc: "galene@lists.galene.org" <galene@lists.galene.org>
Subject: [Galene] Re: Pyrite update
Date: Mon, 24 Jan 2022 19:49:56 +0100	[thread overview]
Message-ID: <87o841c6jv.wl-jch@irif.fr> (raw)
In-Reply-To: <xrCtMMQ57IfAeHKI7dV2Qtwu6y1FtIJhqmlSZ2Qderm3wtwEns72TI2BThbzfq4QXoebPW9Bb5o-1fYxD91wqHCEfLNLHxZ-Vhf6TU1eLBE=@protonmail.com>

> The login messages are still a bit off, when a login error occurs.

You should make sure that you don't attempt to join before the onconnected
callback has triggered.  When the user clicks the join button, you should
render it inactive (grayed out, or whatever), and invoke the
ServerConnection.join method.

In the onjoined callback, you check the "kind" field.  If it is "joined",
you update your user interface to the connected state, and send
a "request" message to receive streams (use the "permissions" field to
decide whether to enable the present button).  If, on the other hand, kind
is "fail", then you display a suitable error message and go back to the
initial setup.

(Afterwards, you keep listening on the onjoined callback -- kind "change"
indicates that your permissions have changed, which might require you to
update your UI.  Kind "leave" indicates that you've left the group, for
example because the administrator has kicked you out.)

-- Juliusz

  reply	other threads:[~2022-01-24 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21 19:26 [Galene] " Jeroen van Veen
2022-01-22 19:29 ` [Galene] " Juliusz Chroboczek
2022-01-24 16:00   ` Jeroen van Veen
2022-01-24 18:49     ` Juliusz Chroboczek [this message]
2022-01-24 19:00       ` Juliusz Chroboczek
2022-01-25  8:23       ` Jeroen van Veen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o841c6jv.wl-jch@irif.fr \
    --to=jch@irif.fr \
    --cc=galene@lists.galene.org \
    --cc=jvanveen@protonmail.com \
    --subject='[Galene] Re: Pyrite update' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox