0

How do I run java script bindings in AllJoyn?

asked 2014-04-23 03:15:43 -0700

Nivedita gravatar image

updated 2014-04-23 03:22:25 -0700

Hi,

I have built AllJoyn for JS bindings for 64 bit ubuntu. I tried running the simple chat application. I tried launching the index.html of client and service in two separate terminals and entered messages. But the messages were not received on the other end.

How should the alljoyn plugin be integrated to the browser?

Is there any more step to be followed before/after launching index.html?

Thanks in advance! -Nivedita

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-23 08:58:12 -0700

georgen gravatar image

The AllJoyn JavaScript bindings use NPAPI to do the native plugin. Your browser must support NPAPI. Last time I checked Firefox and Chrome both supported NPAPI but Chrome said they would be dropping support some time in the future.

The plugin is a shared library that must be placed in the ~/.mozilla/plugins folder. The mozilla plugins folder is used by Firefox and Chrome the library can be found in the build output: build/linux/x86_64/debug/dist/js/lib/libnpalljoyn.so.

The library must match the bits of the browser not the OS. If the browser was compiled 32-bit then the libnpalljoyn.so also must be compiled 32-bit.

once you have copied the libnpalljoyn.so or created a soft link to the libnpalljoyn.so file into the plugins folder. launch your browser. In the address menu type about:plugins you should find an entry for AllJoyn.

Retry the samples.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-04-23 03:15:43 -0700

Seen: 273 times

Last updated: Apr 23 '14