Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Adding plugin to html build
Started by akhtarx5 Feb 16 2020 07:58 AM

- - - - -
4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

akhtarx5

[GLOBAL: userInfoPane.html]
akhtarx5
  • Enthusiast

  • 90 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,250 posts
  • Corona SDK

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



[TOPIC: post.html]
#3

akhtarx5

[GLOBAL: userInfoPane.html]
akhtarx5
  • Enthusiast

  • 90 posts
  • Corona SDK

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



[TOPIC: post.html]
#4

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,250 posts
  • Corona SDK

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.



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,683 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]