Hi,
I want to know if it’s possible to disable hardware acceleration through SDK. I have a custom built application which is working fine on local system, while running in virtualbox vm I am getting exception “Setting ‘render’ is not supported at VideoOS.Toolkit…”.
I know how to disable it for XProtect client but want o do it for SDK so application will use ActiveX not DirectX for the rendering.
Regards
Mehar
You can see it in use in the VideoViewerQuality sample.
EnvironmentManager.Instance.EnvironmentOptions["UseActiveX"] = true;
I tried but getting exception “Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))” at _imageViewerControl1.Initialize();
If I remove EnvironmentManager.Instance.EnvironmentOptions[“UseActiveX”] = “Yes”; it’s working fine.
EnvironmentManager.Instance.EnvironmentOptions["UseActiveX"] = "Yes";
if (_imageViewerControl1 != null)
{
_imageViewerControl1.Disconnect();
}
//List<Item> camCollection = EnvironmentManager.Instance.MasterSite.ServerId.UserContext.Configuration.GetItems()[0].GetChildren()[4].GetChildren()[0].GetChildren();
List<FQID> fqids = new List<FQID>();
List<Item> camCollection = EnvironmentManager.Instance.MasterSite.ServerId.UserContext.Configuration.GetItems()[0].GetChildren()[4].GetChildren()[0].GetChildren();
foreach (Item cam in camCollection)
{
if (cam.Name == cameraName)
_selectItem1 = cam;
}
_imageViewerControl1 = ClientControl.Instance.GenerateImageViewerControl();
_imageViewerControl1.Dock = DockStyle.Fill;
//_imageViewerControl1.InfoText = cameraName;
_imageViewerControl1.ClickEvent += new EventHandler(ImageViewerControl1Click);
panel1.Controls.Clear();
panel1.Controls.Add(_imageViewerControl1);
_imageViewerControl1.CameraFQID = _selectItem1.FQID;
_imageViewerControl1.Initialize();
_imageViewerControl1.Connect();
_imageViewerControl1.Selected = true;
_imageViewerControl1.EnableMouseControlledPtz = true;
_imageViewerControl1.EnableMousePtzEmbeddedHandler = true;
_imageViewerControl1.EnableDigitalZoom = true;
_imageViewerControl1.BackColor = System.Drawing.Color.Black;
See this knowledge base article -
https://force.milestonesys.com/support/articles/en_US/Troubleshootings/Class-not-registered
PS. This is something I have not seen for a while, which tells me partners are using the newer component, but it used to be one of the top questions or issues.