Below is the code of my website showing the camera on a div. It does not work perfectly, but it is just a first test to validate that I can replicate it into a ThingWorx extension.
I then imported the extension into ThingWorx Composer, but the Composer was not accessible anymore after the include (see "AccessComposer.PNG" attached). There is the "Uncaught TypeError: simulatedDataTabs.hoverIntent is not a function" error, which can be related to jquery conflict. I then went to the monitoring page and more precisely to the ExtensionManagerListing (see "ExtensionManagerListing.PNG" attached) to remove the extension I had just added. This solved the problem and the Composer was accessible again.
Following that, I wanted to know where did the error come from. I then onlyadded jquery into metadata.xml, and the importation crashed again. Although this time, the ExtensionManagerListing was not accessible properly (see "ExtensionManagerListing rendering fail.PNG" attached). When I click on the delete button, the error "Uncaught TypeError: $.publish is not a function" occurs. I made some research on that and found that it can happen if there is a conflict with jquery library references. While it is surprising that an extension can cause such big problems, I think that the inclusion of my extension somehow overrides the jquery used by ThingWorx.
I then tried to delete files related to my extension on the server and restarted it, but it did not improve the situation.
I noticed a bit after the importation that I made a mistake in the manner of including jquery. According to the ThingWorx Foundation Extension Development Guide page 78, a jquery library must be included by appending html and before that checking if the library already exists. So that could be an explanation on why it fails.
Would someone have an idea how I could fix this issue?