You are not logged in.

#1 2023-10-27 09:37:00

aurelieng
Member
Registered: 2010-02-02
Posts: 104

[SOLVED] Screensharing w/xpra and its html5 client: not working?

I'm trying to setup xpra and xpra-html5 to share my screen with other people using just their web browser.

My first attempt is to start term using xpra on localhost, and connect to it with a browser also running on localhost with the following commands:

xpra start --daemon=no --mdns=no --bind-tcp=0.0.0.0:10000 --start=xterm
xdg-open http://localhost:10000

The browser is immediately redirected to `http://127.0.0.1:10001/connect.html`,
but can't proceed further. Server-side, there warnings/errors:

2023-10-27 11:11:35,467 New tcp connection received
2023-10-27 11:11:35,468  from '127.0.0.1:55148'
2023-10-27 11:11:35,468  on '0.0.0.0:10001'
2023-10-27 11:11:36,213 Handshake complete; enabling connection
2023-10-27 11:11:36,213 Warning: failed to convert dpi
2023-10-27 11:11:36,213  from <class 'dict'> using <class 'int'>: int() argument must be a string, a bytes-like object or a real number, not 'dict'
2023-10-27 11:11:36,223 listget('encodings', (), <class 'str'>, None)
2023-10-27 11:11:36,223 expected a list or tuple value for encodings but got <class 'dict'>
2023-10-27 11:11:36,229 listget('encodings', (), <class 'str'>, None)
2023-10-27 11:11:36,229 expected a list or tuple value for encodings but got <class 'dict'>
2023-10-27 11:11:36,230 Error setting up new connection for
2023-10-27 11:11:36,230  WebSocket(ws socket: 127.0.0.1:10001 <- 127.0.0.1:51432):
2023-10-27 11:11:36,230  client failed to specify any supported encodings
2023-10-27 11:11:36,232 Disconnecting client 127.0.0.1:51432:
2023-10-27 11:11:36,233  connection error (client failed to specify any supported encodings)

Maybe related: when `xpra` starts, I see:

2023-10-27 10:32:54,142 ffmpeg: all the codecs have failed! (h264+mp4, mpeg4+mp4, mpeg1, mpeg2)

I tried both `xpra` and `xpra-html5` from `extra` and AUR (their `*-git` versions), and neither work:

- xpra 4.4.5-1
- xpra-html5-git 9.0.r14.g60cd4d0-1


Ideas welcome :-)

(crossposted on reddit  here)

Last edited by aurelieng (2023-10-27 14:22:58)

Offline

#2 2023-10-27 14:22:43

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Screensharing w/xpra and its html5 client: not working?

Nevermind, `xpra-git` from AUR works (current version is 6, 4.4.5-1 is out of date and not supported, cf. xpra wiki on github.)

Offline

Board footer

Powered by FluxBB