pxi-gmbh / pipfy

a floating webcam image on your desktop
9 stars 1 forks source link

Possible to make it circular? #18

Open ADTC opened 1 year ago

ADTC commented 1 year ago

It would have been nice if we could do a circle (fitting 1:1 square, not an oval). Is it possible? I know that it's the browser that renders the pop-up, and transparency support is sketchy, so maybe it isn't possible.

Maybe a compromise would be to choose between white circle (with white background) and black circle (with black background). This could fit in the regular 1:1 video you already have.

BTW, in Firefox, the button doesn't work because requestPictureInPicture API isn't supported (even right now, for some stupid reason, while other browsers have it for years). But you can point at the video and a small PIP button appears on the video which you can click.

jochmann commented 1 year ago

Hey, thanks for the suggestion. We did indeed try and find workarounds to create a transparent background, but as long as we are bound by the browser the answer unfortunately is: impossible.

The suggestion to add a color for a circular cutout is sensible. It will not eliminate the browser chrome, shadows and UI-borders of the OS, but if we add a color picker so you could at least camouflage the cutout inside the rectangular window, that might help. Should not be too much trouble, I think. Great idea.

We know about the Firefox issue. I usually go with right click. It just so happens that we have very limited capacity to work on our free apps at the moment and we postponed all but critical bug fixes until we do a planned rework. In fact, for this one we have applied for funding to finally be able to offer our very own translation server (you can kind of cook your own using openAI Whisper, but we would like an ethically sourced model of our own).

Meanwhile, if you want to contribute code, I think I may be able to convince our lead developer to take care of pull requests. Thank you for your patience.