Материал из Module developer
// Get image var l_oImage = module.GetImage("Camera 1"); IR.Log(l_oImage) // [object ImagePrototype] // Get image properties IR.Log(l_oImage.URI) // http://login:pass@host:port/file // Setup image (set image properties) l_oImage.URI = "http://login:pass@host:port/file"; l_oImage.Refresh = 0; l_oImage.Demuxer = ; l_oImage.ProbeSize = 0; l_oImage.Param = ; l_oImage.Audio = false; l_oImage.ScaleWidth = 1024; l_oImage.ScaleHeight = 768; // Link image to Item module.GetPopup("Popup 1").GetItem("Item 1").GetState(0).Image = module.GetImage("Camera 1"); module.GetPopup("Popup 2").GetItem("Item 2").GetState(0).Image = l_oImage; </syntaxhighlight> |attentions= }}