Switching cameras
Switching cameras
To switch cameras, call the setCamera function, e.g. from your click-handler, providing the name of the desired camera (as string).
e.g. 01:
<button onclick="setCamera('exampleCamera')">MyCamera</button>
e.g. 02 jQuery:
jQuery(".buttonType").on("click", function (e) {
setCamera(“exampleCamera”);
});