television

a simple LAN/WLAN desktop public broadcasting service
git clone http://git.permacomputing.net/repos/television.git # read-only access
Log | Files | Refs | README

HACKING (1466B)


      1 patches are welcome!
      2 
      3 send diff, git format-patch patches, etc.
      4 
      5 possible things to improve:
      6 
      7 - right now kbinani/screenshot is used for taking a screenshot, and I'm
      8 a bit split about it. In theory it should work both under X and wayland
      9 so that could be nice. In practice though, I don't use wayland, so I
     10 can't really test or see if there are better ways to do this. Also under
     11 X it seems much much much slower than using imlib2 directly. With the
     12 -snap feature, I notice I'm using mostly scrot in place of the default
     13 screenshot implementation, so hmmmm...
     14 
     15 - when I was pondering which image format to use, jpeg was basically a
     16 good compromise between encoding/decoding time and file size. GIF is
     17 super fast to encode/decode but will generate massive files, and webp is
     18 really super slow for encoding/decoding and the super small file size
     19 does not matter given that encoding and decoding is main task of
     20 television server and clients. image/jpeg was however suprisingly slow
     21 so I picked apixiv/go-libjpeg instead, which when compiled on a system
     22 where libjpeg points to libjpeg-turbo is two times faster than golang's
     23 own implementation. Any room to improve further?
     24 
     25 - -idle only works on X, same remarks as above regarding wayland. Worse,
     26 I am not sure it's even possible to detect user activity under wayland?
     27 
     28 - password, publishing to a public IP, etc. If this is needed, I think
     29 it's probably better to proxy with nginx, use tinc or some ssh tunnel,
     30 etc.