A fork of TJWei's PlayStation emulator to use for your own purposes.
To add this to your website, click here so you can download the WASMpsx source code as a ZIP file.
Then, add them to your website and create a <script>
tag like this:
<script src="path/to/wasmpsx.min.js"></script>
Also, please make sure that your site correctly serves .wasm files. To do this:
AddType application/wasm .wasm
types { application/wasm wasm; }
After those steps, you are ready to use WASMpsx!
To use WASMpsx, use this example script:
document.getElementById('my-wasmpsx-element').loadUrl('/path/to/granturismo.bin');
And to load files, not URLs, use this script:
document.getElementById('my-wasmpsx-element').readFile(file here, useful for file input);
To add a display, add a wasmpsx-player
element.
Example element:
<wasmpsx-player id="my-wasmpsx-element"></wasmpsx-player>