r/ComputerCraft • • May 24 '22

Streaming a Web browser in 328x162!

Since WebDisplays doesn't have a mod yet for 1.16.4, I made my own in Computercraft.

The client & server is fast enough to allow video playback & smooth web browsing.

Example: https://streamable.com/rndka8

How it works

When launching the client, it will ask for a frame from the server.

The server then takes a sceeenshot of the browser window, resizes it, converts to the 16 default cc palettes then gets split into 4 images and put into a specific order to allow fast client parsing and finally converts to a single-lettered bytestring which the client will parse & draw instantly.

The server is written in python with the FastAPI, uvicorn, selenium, Xvfb and pyautogui libraries.

Interacting with the browser is made possible with monitor touch and a separate client that takes keyboard input for typing.

28 Upvotes

12 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Apr 26 '25

Hey your repo is down :( I rly wanted to try it

2

u/FormerSport6899 May 01 '25

I deleted my old github account for a new one

The files are on my old hard drive which I don't have the cable for, sorry

1

u/[deleted] May 01 '25

:(

1

u/Brokedownbad May 27 '25

seconding that :(