How to embed processing sketch onto HTML web page?

Hi. how to I embed my processing sketch directly onto a web page?
My sketch uses P3D.
libraries: Sound, Video and other miscellaneous libraries.

The short answer is that you can’t. If you have a Processing sketch that uses Java libraries, you can only deploy it as an application.

Shameless self-promotion:


If you need 3D, audio and video in a web page, your other option is to do a full rewrite in p5.js.