Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Goffi <goffi@goffi.org>
To: galene@lists.galene.org
Subject: [Galene] Re: Need explanation on protocol
Date: Mon, 22 Jul 2024 22:44:18 +0200	[thread overview]
Message-ID: <5972516.MhkbZ0Pkbq@tazar3> (raw)
In-Reply-To: <87wmldcmfh.wl-jch@irif.fr>

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

Le lundi 22 juillet 2024, 20:26:58 UTC+2 Juliusz Chroboczek a écrit :
> > https://repos.goffi.org/libervia-backend/file/tip/libervia/backend/plugins/
plugin_comp_conferences/__init__.py#l130
> 
> Ah, I think I see the problem.
> 
> There's the client id, and there's the stream id.  You're reusing the
> client id as the stream id, and that's not correct: if a client publishes
> multiple streams, they must choose different ids.
> 
> So you should be doing something like:
> 
>    def send_offer(self, session: dict, sdp: str) -> None:
>        ...
>                 "id": str(uuid()),
>        ...
> 
> instead of self["id"].
> 
> -- Juliusz
> 
> 
> _______________________________________________
> Galene mailing list -- galene@lists.galene.org
> To unsubscribe send an email to galene-leave@lists.galene.org
> 

Alright,

I think that I've got it.

I was somehow thinking that Galène created a whole new ID when forwarding a 
stream, so when I received the identical ID as my offer, I thought it was 
Louise's stream sent to me. But actually, it was my stream sent to Louise 
using the other client (both are handled by the same instance, hence my 
confusion).

By logging the client ID, I see now what is happening, and I should be able to 
fix my code.

Thanks a lot for your help and work on Galène!

Best,
Goffi

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2024-07-22 20:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <172167026848.994.7816686770190093792@gauss.local>
2024-07-22 17:52 ` Juliusz Chroboczek
2024-07-22 18:02   ` Goffi
     [not found]   ` <172167246572.994.11732831478625410475@gauss.local>
2024-07-22 18:26     ` Juliusz Chroboczek
2024-07-22 20:44       ` Goffi [this message]
     [not found]       ` <172168132829.994.3096417796511056404@gauss.local>
2024-07-22 20:50         ` Juliusz Chroboczek

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=5972516.MhkbZ0Pkbq@tazar3 \
    --to=goffi@goffi.org \
    --cc=galene@lists.galene.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox