Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Playing RetroPie games in a browser



  • would anybody be interested in playing retropie games in the PC/Android browser (plugin-free) as shown above, by only using your voice and/or gestures to control the player instead of/together with the gamepad controller?


  • administrators

    @lproj would be an interesting proof of concept. Would be even more interesting with games like duck hunt



  • This is another demo. The game (Super Mario) is played from an Android Smartphone this time (in Chrome to be specific, no plug-in required) with a wireless GameSir controller attached to it. As usual the game runs on an headless Raspberry Pi 3B+ (with no display, no speakers, no gamepad connected). (To be honest, for demo purposes a display was also connected to the Raspberry Pi, but it was not necessary.) Easy-to-follow Instructions to try the same will be provided soon.




  • administrators

    @lproj neat, once the dust settles with my move I'll have to dig my pi out and give it a go



  • I followed the tutorial and it worked well for me.
    For those interested in trying, just know that you do need to configure your client keyboard/gamepad in emulationstation so you should be where you can do that on your first try. Maybe that's obvious, but I did my install remotely and then couldn't interact with the RPi.

    Is there a way to use a software keyboard/gamepad with it?



  • @b3k if you know a bit of javascript programming, it should be easy to implement it in the webapp. I originally thought of a virtual gamepad to be placed on the top of the page for those who do not have a real controller but have a touchscreen, however I ended up with supporting real controllers in the browser. In any case the principle in the webapp is the same: each event (button up,down,left,right..) is mapped to the corresponding code which is sent to the rpi (where there exists a virtual gamepad interpreting the received code and "actuating" the corresponding event). The webapp source code can be found here:
    https://github.com/lproj/screen-sharing-app



  • How would you go about restricting the server's virtual keyboard to only pass through certain keys regardless of what keys the browser sends?



  • I didn't want to be very picky but i feel i must... how is this different from using a teamviewer or other remote app? Is it optimised? This may be interesting to me if it works with no lag. but we are transmitting video, right?

    Yea we cant do it with a psx game but we could do it with these smaller roms.
    Personally, i'd rather to have a browser plugin (trusted :D)



  • @navyseai said in Playing RetroPie games in a browser:

    I didn't want to be very picky but i feel i must... how is this different from using a teamviewer or other remote app?

    It's highly platform independent this way.

    Personally, i'd rather to have a browser plugin (trusted :D)

    Why add (usually third-party) code to a browser if it can get the job done without one? More code means more complexity and thus, more risk of instability, incompatibility and vulnerability.

    The link „instructions“ in the opening post lists many advantages of this approach, like clientlessness, independence, security, standardisation etc.



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.