I couldn’t get the base64 iframe version to work. Probably due to it needing external files as well in the HTML.
But here are my changes to make embedding PlayCanvas directly into a canvas/div
Repo: https://github.com/yaustar/playcanvas-embedding-tests
Commit Diff: https://github.com/yaustar/playcanvas-embedding-tests/commit/9fd24541f1d20766015e0860a64057fb8d401025
It’s not thoroughly tested so you may need to fix any issues that you encounter as this is not a supported use case.
Good luck @Jake_Johnson