Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] WHIP problems...
@ 2024-02-21  9:21 Tim Panton
  2024-02-21 10:12 ` [Galene] " Juliusz Chroboczek
  2024-02-21 10:26 ` Dave Taht
  0 siblings, 2 replies; 14+ messages in thread
From: Tim Panton @ 2024-02-21  9:21 UTC (permalink / raw)
  To: galene

Hi, for ‘reasons’ I’d like to send a stream from an existing web page to galene via WHIP.
I’m running into permissions and CORS problems.

Has anyone been successful in sending WHIP to galene from a web page (i.e. not OBS) ?
If so could you please send me a bit of a cook-book ?

Thanks.

Tim.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21  9:21 [Galene] WHIP problems Tim Panton
@ 2024-02-21 10:12 ` Juliusz Chroboczek
  2024-02-21 10:23   ` Tim Panton
  2024-02-21 10:26 ` Dave Taht
  1 sibling, 1 reply; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-21 10:12 UTC (permalink / raw)
  To: Tim Panton; +Cc: galene

> Hi, for ‘reasons’ I’d like to send a stream from an existing web page to
> galene via WHIP.  I’m running into permissions and CORS problems.

Have you set the `publicServer` flag in your `config.json`?

-- Juliusz


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 10:12 ` [Galene] " Juliusz Chroboczek
@ 2024-02-21 10:23   ` Tim Panton
  2024-02-21 11:49     ` Tim Panton
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 10:23 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene



> On 21 Feb 2024, at 10:12, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
>> Hi, for ‘reasons’ I’d like to send a stream from an existing web page to
>> galene via WHIP.  I’m running into permissions and CORS problems.
> 
> Have you set the `publicServer` flag in your `config.json`?

No, I’ll try that. 
Thanks.

T.


> 
> -- Juliusz
> 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21  9:21 [Galene] WHIP problems Tim Panton
  2024-02-21 10:12 ` [Galene] " Juliusz Chroboczek
@ 2024-02-21 10:26 ` Dave Taht
  2024-02-21 11:25   ` [Galene] Latency and jitter [was: WHIP problems...] Juliusz Chroboczek
  1 sibling, 1 reply; 14+ messages in thread
From: Dave Taht @ 2024-02-21 10:26 UTC (permalink / raw)
  To: Tim Panton; +Cc: galene

This is my test video for this: https://www.youtube.com/watch?v=j_QLzthSkfM

Less humorously I am really interested in video quality and responses
to latency and jitter in an application like this.


On Wed, Feb 21, 2024 at 4:21 AM Tim Panton <tim@pi.pe> wrote:
>
> Hi, for ‘reasons’ I’d like to send a stream from an existing web page to galene via WHIP.
> I’m running into permissions and CORS problems.
>
> Has anyone been successful in sending WHIP to galene from a web page (i.e. not OBS) ?
> If so could you please send me a bit of a cook-book ?
>
> Thanks.
>
> Tim.
> _______________________________________________
> Galene mailing list -- galene@lists.galene.org
> To unsubscribe send an email to galene-leave@lists.galene.org



--
40 years of net history, a couple songs:
https://www.youtube.com/watch?v=D9RGX6QFm5E
Dave Täht CSO, LibreQos

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Latency and jitter [was: WHIP problems...]
  2024-02-21 10:26 ` Dave Taht
@ 2024-02-21 11:25   ` Juliusz Chroboczek
  2024-02-21 11:46     ` [Galene] " Tim Panton
  0 siblings, 1 reply; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-21 11:25 UTC (permalink / raw)
  To: Dave Taht; +Cc: galene

> Less humorously I am really interested in video quality and responses
> to latency and jitter in an application like this.

Native Galene clients and WHIP clients use the same codepath for RTP, so
I'd expect latency and jitter to be exactly the same for WHIP and native.

I too would be interested in latency results for Galene, but such results
are better when put in context, so somebody would need to set up a lab
where they can also measure the latency of Zoom and Jitsi.  It should
preferably be somebody else than me, since I have an obvious bias, but I'd
be glad to assist the person doing the testing.

-- Juliusz

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: Latency and jitter [was: WHIP problems...]
  2024-02-21 11:25   ` [Galene] Latency and jitter [was: WHIP problems...] Juliusz Chroboczek
@ 2024-02-21 11:46     ` Tim Panton
  2024-02-21 12:11       ` Juliusz Chroboczek
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 11:46 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: Dave Taht, galene



> On 21 Feb 2024, at 11:25, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
>> Less humorously I am really interested in video quality and responses
>> to latency and jitter in an application like this.
> 
> Native Galene clients and WHIP clients use the same codepath for RTP, so
> I'd expect latency and jitter to be exactly the same for WHIP and native.
> 
> I too would be interested in latency results for Galene, but such results
> are better when put in context, so somebody would need to set up a lab
> where they can also measure the latency of Zoom and Jitsi.  It should
> preferably be somebody else than me, since I have an obvious bias, but I'd
> be glad to assist the person doing the testing.

I’ve hacked together a glass-to-glass video latency measurement device.
I’ll be talking about it and publishing the how-to in April.

Happy to do a few tests on Galene and other platforms when I have a stable build.

(Currently it looks like safari is 1 frame faster than chrome ;-) )

T.
> 
> -- Juliusz
> _______________________________________________
> Galene mailing list -- galene@lists.galene.org
> To unsubscribe send an email to galene-leave@lists.galene.org


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 10:23   ` Tim Panton
@ 2024-02-21 11:49     ` Tim Panton
  2024-02-21 12:09       ` Juliusz Chroboczek
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 11:49 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene



> On 21 Feb 2024, at 10:23, Tim Panton <tim@pi.pe> wrote:
> 
> 
> 
>> On 21 Feb 2024, at 10:12, Juliusz Chroboczek <jch@irif.fr> wrote:
>> 
>>> Hi, for ‘reasons’ I’d like to send a stream from an existing web page to
>>> galene via WHIP.  I’m running into permissions and CORS problems.
>> 
>> Have you set the `publicServer` flag in your `config.json`?
> 
> No, I’ll try that. 
> Thanks.
> 
> T.
> 

Not working yet, 
Here’s what I see on the chrome console...

POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)
publish @ whip.js:78
await in publish (async)


Also how do I create the bearer token for whip to send? Can I use /invite for that ?

T.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 11:49     ` Tim Panton
@ 2024-02-21 12:09       ` Juliusz Chroboczek
  2024-02-21 12:51         ` Tim Panton
  0 siblings, 1 reply; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-21 12:09 UTC (permalink / raw)
  To: Tim Panton; +Cc: galene

> POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)
> publish @ whip.js:78
> await in publish (async)

Anything in the logs?

> Also how do I create the bearer token for whip to send?  Can I use /invite
> for that ?

Yes.

-- Juliusz

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: Latency and jitter [was: WHIP problems...]
  2024-02-21 11:46     ` [Galene] " Tim Panton
@ 2024-02-21 12:11       ` Juliusz Chroboczek
  0 siblings, 0 replies; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-21 12:11 UTC (permalink / raw)
  To: Tim Panton; +Cc: Dave Taht, galene

> I’ve hacked together a glass-to-glass video latency measurement device.

That's almost unbearably cool.  Please send us a note when you do a presentation.

-- Juliusz

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 12:09       ` Juliusz Chroboczek
@ 2024-02-21 12:51         ` Tim Panton
  2024-02-21 14:15           ` Tim Panton
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 12:51 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene



> On 21 Feb 2024, at 12:09, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
>> POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)
>> publish @ whip.js:78
>> await in publish (async)
> 
> Anything in the logs?

Nothing I can see. 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 12:51         ` Tim Panton
@ 2024-02-21 14:15           ` Tim Panton
  2024-02-21 16:02             ` Juliusz Chroboczek
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 14:15 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene



> On 21 Feb 2024, at 12:51, Tim Panton <tim@pi.pe> wrote:
> 
> 
> 
>> On 21 Feb 2024, at 12:09, Juliusz Chroboczek <jch@irif.fr> wrote:
>> 
>>> POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)
>>> publish @ whip.js:78
>>> await in publish (async)
>> 
>> Anything in the logs?
> 
> Nothing I can see. 

Which figures - I think it is a service worker issue on my side. 
I’ll investigate.

T.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 14:15           ` Tim Panton
@ 2024-02-21 16:02             ` Juliusz Chroboczek
  2024-02-21 17:02               ` Tim Panton
  0 siblings, 1 reply; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-21 16:02 UTC (permalink / raw)
  To: Tim Panton; +Cc: galene

>>>> POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)

> Which figures - I think it is a service worker issue on my side. 

It looks to me like you got a 500 error from the server.  Of which there
are quite a few in the WHIP code, not all of which log an error.

    $ grep -c InternalServerError webserver/whip.go
    7

So while it might be a violation of the protocol in your code, it
shouldn't result in a 500.

-- Juliusz

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 16:02             ` Juliusz Chroboczek
@ 2024-02-21 17:02               ` Tim Panton
  2024-02-22 22:33                 ` Juliusz Chroboczek
  0 siblings, 1 reply; 14+ messages in thread
From: Tim Panton @ 2024-02-21 17:02 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene

I’ve narrowed it down to this:

        pth, kind, pthid := splitPath(r.URL.Path)
-       if kind != ".whip" || pthid != "/" {
+       if kind != ".whip” {

I _think_ the test for a url ending in “/“ is wrong for .whip

T.

> On 21 Feb 2024, at 16:02, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
>>>>> POST https://pipe.nu/group/hunt/.whip net::ERR_ABORTED 500 (Internal Server Error)
> 
>> Which figures - I think it is a service worker issue on my side.
> 
> It looks to me like you got a 500 error from the server.  Of which there
> are quite a few in the WHIP code, not all of which log an error.
> 
>    $ grep -c InternalServerError webserver/whip.go
>    7
> 
> So while it might be a violation of the protocol in your code, it
> shouldn't result in a 500.
> 
> -- Juliusz


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Galene] Re: WHIP problems...
  2024-02-21 17:02               ` Tim Panton
@ 2024-02-22 22:33                 ` Juliusz Chroboczek
  0 siblings, 0 replies; 14+ messages in thread
From: Juliusz Chroboczek @ 2024-02-22 22:33 UTC (permalink / raw)
  To: Tim Panton; +Cc: galene

> I’ve narrowed it down to this:
> 
>         pth, kind, pthid := splitPath(r.URL.Path)
> -       if kind != ".whip" || pthid != "/" {
> +       if kind != ".whip” {

commit 923d78eaa30becd0afed3943b75a5230e934037f (HEAD -> master, origin/master)
Author: Juliusz Chroboczek <jch@irif.fr>
Date:   Thu Feb 22 23:31:03 2024 +0100

    Fix handling of WHIP URLs.
    
    We broke WHIP when we introduced splitPath.  Thanks to Tim Panton.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-02-22 22:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21  9:21 [Galene] WHIP problems Tim Panton
2024-02-21 10:12 ` [Galene] " Juliusz Chroboczek
2024-02-21 10:23   ` Tim Panton
2024-02-21 11:49     ` Tim Panton
2024-02-21 12:09       ` Juliusz Chroboczek
2024-02-21 12:51         ` Tim Panton
2024-02-21 14:15           ` Tim Panton
2024-02-21 16:02             ` Juliusz Chroboczek
2024-02-21 17:02               ` Tim Panton
2024-02-22 22:33                 ` Juliusz Chroboczek
2024-02-21 10:26 ` Dave Taht
2024-02-21 11:25   ` [Galene] Latency and jitter [was: WHIP problems...] Juliusz Chroboczek
2024-02-21 11:46     ` [Galene] " Tim Panton
2024-02-21 12:11       ` Juliusz Chroboczek

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