Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I have a requirement to switch on a camera from browser of ipad to click a image and store it in system. For this I am trying to build a custom widget.
For this I have created a "CameraON" boolean property in camera.ide.js file. From camera.runtime.js file I am checking for this property, if it is true I am trying to switch on the camera. But it is not working. I am attaching both the files for reference.
It would be helpful if someone can help on this or suggest how to troubleshoot.
Thanks in advance!
Solved! Go to Solution.
Hi @JS_10369742,,
Some of our colleagues from presales created an example VideoPlayer widget here https://github.com/ptc-iot-sharing/HtmlVideoPlayerWidgetTWX/blob/master/ui/HTML5Video/HTML5Video.runtime.js
You can see there the way they render their content in runtime. Before you package your code as a widget, I suggest testing it in a simple HTML page to see if the principle works well.
The things I observed in your code are the following:
Hi @JS_10369742,,
Some of our colleagues from presales created an example VideoPlayer widget here https://github.com/ptc-iot-sharing/HtmlVideoPlayerWidgetTWX/blob/master/ui/HTML5Video/HTML5Video.runtime.js
You can see there the way they render their content in runtime. Before you package your code as a widget, I suggest testing it in a simple HTML page to see if the principle works well.
The things I observed in your code are the following: