Tips & Tricks

Setting a new dizmo icon

To indicate a different dizmo state, especially for a iconified dizmo, you can set a new icon during runtime of the dizmo:

Put additional images into the root folder of the dizmo or the inside the assets folder. Then set the new icon via:

dizmo.setAttribute("settings/iconimage","Icon2.svg");

Open the Video Player with a predefined video

You can open the Video Player dizmo from your dizmo with a predefined (streaming) video as following:

viewer.getBundleById('com.dizmo.videoplayer').instantiateDizmo({},{},{
   'files/000000000/path': "https://stream.flowplayer.org/functional.mp4",
   'files/000000000/name': "functional.mp4"
}, function () {
   console.debug('[instantiated]', arguments);
});