wrp icon indicating copy to clipboard operation
wrp copied to clipboard

[Suggestion] Real-Time Page Rendering

Open zurgeg opened this issue 5 years ago • 16 comments

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.

zurgeg avatar Nov 05 '20 16:11 zurgeg

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

tenox7 avatar Nov 05 '20 17:11 tenox7

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

zurgeg avatar Nov 05 '20 17:11 zurgeg

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?

tenox7 avatar Nov 07 '20 15:11 tenox7

@tenox7 That might work.

zurgeg avatar Nov 07 '20 16:11 zurgeg

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

zurgeg avatar Nov 07 '20 20:11 zurgeg

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

  • (the more important): as you suggested, a re-capture image - some websites (like discord) are loading a bit longer than it takes for host to take a screenshot, so in the browser window i just see an image of loading screen. Currently the work-around is clicking something like the Backspace button, but if the website uses all buttons for something, then there is a problem.
  • (less important): normal refresh - it will make a page reload on host, and then send a new image. Currently the work-around is just clicking GO again keeping the same link

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!)

wojtekpolska avatar Nov 13 '20 22:11 wojtekpolska

@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.

zurgeg avatar Nov 14 '20 01:11 zurgeg

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.

tenox7 avatar Nov 14 '20 01:11 tenox7

@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

wojtekpolska avatar Nov 14 '20 01:11 wojtekpolska

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

tenox7 avatar Nov 14 '20 01:11 tenox7

Im happy to be helpful :D

wojtekpolska avatar Nov 14 '20 01:11 wojtekpolska

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 avatar Mar 08 '21 12:03 tenox7

@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.

tenox7 avatar Mar 08 '21 13:03 tenox7

@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.

zurgeg avatar Mar 18 '21 02:03 zurgeg

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 avatar Mar 18 '21 03:03 tenox7

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

tenox7 avatar Mar 22 '21 13:03 tenox7