Adding plugin to html build

Hi

Is there any way i can add a plugin to the html build,

using javascript or other method

im trying to get the nano.svg plugin working for html build

https://marketplace.coronalabs.com/corona-plugins/nano-svg

build is fine for android etc

thankyou

Are you getting a crash somewhere when you try to build for HTML5 with Nano SVG? If so, what is it?

There is a specific way to add plugin to html build as described in this page

https://docs.coronalabs.com/guide/html5/plugins/index.html

can somebody make this even easier to implement,

cant seem to get it to work.

i am specifically trying to add the nano plugin with html build so i can use svg on the website

https://marketplace.coronalabs.com/corona-plugins/nano-svg

That is how you add a JavaScript plugin to HTML5 builds.

If you just want to use ordinary plugins, then especially if it is written in Lua, it’ll just work on HTML5 builds without any hassle.

So, I ask again: what error messages are you seeing OR have you even tried adding it the normal way yet? It could be that Nano SVG is not supported on HTML5, I haven’t tried it so I don’t know, but you should see some error message somewhere to tell you more.

There are two types of plugins in the marketplace. For the sake of simplicity, lets call them binary plugins and Lua plugins,

Binary plugins are compiled for specific platforms, such as Android or iOS. The Nano SVG plugin is a prime example of this., What runs on Windows won’t run on a Mac. It’s a compiled C++ program.

These plugins do not work for HTML5. We never got around to building a system of building C++ plugins for HTML5. Other plugins that are device specific (they have iOS frameworks or Android/Java .jar files) only work on those OS’s and would never work for HTML5. This is why there are no ad plugins for Windows or macOS.

There are Lua based plugins which should work for HTML5. In the Marketplace it should say what platforms it’s available for.

But the binary plugins are not going to work with HTML5 builds. The JavaScript plugins are a different thing.

Rob

I just tried to compile my project for HTML5. I use a few plugins and it seems like in HTML5 they are all missed!

image