tenox7 / wrp

Web Rendering Proxy: Use vintage, historical, legacy browsers on modern web
Apache License 2.0
1.05k stars 50 forks source link

[Suggestion] Real-Time Page Rendering #78

Open zurgeg opened 3 years ago

zurgeg commented 3 years ago

In my opinion, WRP should at least have an option to render the page every time it is updated, this would make the page much more responsive. You could also make it run at 1 frame per x seconds by putting a JS refresh (for some newer devices) every x seconds. Thanks in advance.

tenox7 commented 3 years ago

please elaborate on when is it that a page is updated?

but I do see a need to add a button to re-capture the page image for auto refresh maybe http-equiv refresh, I don't like javascript, but maybe

zurgeg commented 3 years ago

For instance, on youtube, whenever a new frame is pushed @tenox7.

tenox7 commented 3 years ago

that would probably require some streaming protocol, you don't want to be generating a new png/gif image every frame

hmm maybe animated gif?

zurgeg commented 3 years ago

@tenox7 That might work.

zurgeg commented 3 years ago

I think some older systems (like Windows 95) might not like that.

wojtekpolska commented 3 years ago

@tenox7 I'd really enjoy if you added 1 (or 2) buttons:

PS. I don't really think streaming is possible to be implemented, especially to the oldest browsers (I tried your tool with Windows 3.11's Internet Explorer 5.01 and it worked!)

zurgeg commented 3 years ago

@wojtekpolska I think that there should be an option for streaming, for some of the newer browsers that support it, also, I think an animated GIF would be handy for some browsers "in the middle" that support it.

tenox7 commented 3 years ago

Agreed. I will definitely add "re-capture image" option/button without page refresh. As for animated gif I'm going to do some experiments and see whats doable.

wojtekpolska commented 3 years ago

@tenox7 Thanks! I like this tool already, im using it out of curiosity, but im pretty sure that some legacy systems might heavily benefit from it :)

PS. The Readme file is missing an explanation to "S" function and im not really sure what it does either, i assume its size, but why is it needed when we already choose the page size in px? it probably has some use that im not aware of

If you have time please add information about "S" to the Readme

tenox7 commented 3 years ago

S is for scale, or zoom. Thanks for pointing it out!! I'll fix it in the readme.

wojtekpolska commented 3 years ago

Im happy to be helpful :D

tenox7 commented 3 years ago

I have added "recapture image" option. This is done with St button which basically sends "Stop" to chrome and then recaptures page. This even works in Youtube, you can play a video and click on St and it will refresh it on the client without reloading whole page.

tenox7 commented 3 years ago

@wojtekpolska I have also renamed S (scale) to Z (zoom). I checked with Chrome and Firefox and they both have "Zoom" instead of scale so this should be more clear now.

zurgeg commented 3 years ago

@tenox7 I came up with an idea. Would using a small JS program to auto-query for a new frame work? I'm pretty sure that's what browservice does.

tenox7 commented 3 years ago

I have a method for recapturing screenshot without page refresh. There is a button for this in the default html. It's not released but it's in head main (I will be releasing shortly). You could trigger this with JavaScript easily. Saying that I dont want to add JS to the default html but now you can customize it yourself :)

tenox7 commented 3 years ago

this is now released as 4.5.2 https://github.com/tenox7/wrp/releases/tag/4.5.2