Re: [Mojolicious] Re: web cam websocket

2020-09-14 Thread Felipe Gasper
That seems an odd error from Chrome, if that’s the fix .. was the browser 
sending a subprotocol in the handshake?

-F

> On Sep 14, 2020, at 07:37, Mikhail  wrote:
> 
> Thanks! Forever ♥ Mojolicious!
> 
> понедельник, 14 сентября 2020 г. в 13:41:46 UTC+5, Sebastian Riedel: 
>> Then you need to negotiate a subprotocol.
>> 
>> --
>> sebastian
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mojolicious/68624663-2baf-4bc2-a24e-b8fc135ff15dn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/33AC68A2-F3E8-4C8B-BB60-05D6EABA46A1%40felipegasper.com.


[Mojolicious] Re: web cam websocket

2020-09-14 Thread Mikhail
Thanks! Forever ♥ Mojolicious!

понедельник, 14 сентября 2020 г. в 13:41:46 UTC+5, Sebastian Riedel: 

> Then you need to negotiate a subprotocol.
>
> --
> sebastian
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/68624663-2baf-4bc2-a24e-b8fc135ff15dn%40googlegroups.com.


[Mojolicious] Re: web cam websocket

2020-09-14 Thread Sebastian Riedel
Then you need to negotiate a subprotocol.

--
sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/24ee8e0a-9470-425a-93e0-c2827a8d6152n%40googlegroups.com.


[Mojolicious] web cam websocket

2020-09-14 Thread Mikhail

Hi,

I'm try simple web camera app (attached here script). That works *fine with 
Firefox* browser but Chrome did not works and show the error:
WebSocket connection to 'ws://localhost:3000/feed?feed=%2Ffeed%2Fcam1' 
failed: Error during WebSocket handshake: Sent non-empty 
'Sec-WebSocket-Protocol' header but no response was received

and log:

   - [2020-09-14 16:50:19.43834] [5345] [info] [G4k6PIcS] Client connected: 
   Mojolicious::Controller=HASH(0x3576860); to feed: 
   Mojo::IOLoop::Stream=HASH(0x3510830); clients: 3
   - [2020-09-14 16:50:19.43859] [5345] [debug] [G4k6PIcS] 101 Switching 
   Protocols (0.001538s, 650.195/s)
   - [2020-09-14 16:50:19.44027] [5345] [info] [G4k6PIcS] Client 
   disconnected: Mojolicious::Controller=HASH(0x3576860); clients: 2



==
CORE
  Perl(v5.26.1, linux)
  Mojolicious (8.59, Supervillain)

OPTIONAL
  Cpanel::JSON::XS 4.09+   (n/a)
  EV 4.32+ (n/a)
  IO::Socket::Socks 0.64+  (n/a)
  IO::Socket::SSL 2.009+   (2.066)
  Net::DNS::Native 0.15+   (n/a)
  Role::Tiny 2.01+ (2.08)
  Future::AsyncAwait 0.36+ (n/a)
=

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/4ac6c7d0-917f-421d-bb78-8a15b44416een%40googlegroups.com.


mojo-websocket-ffmpeg.pl
Description: Perl program