I would like to know same info of the cameras via SDK with javascript Api

I would like to know the status of the cameras and servers via SDK, and other information like resolution or model of a camera or if a camera is a ptz camera or not. Among the samples of the documentation I have seen that with SDK .Net API it is possible. Is it possible to obtain all this info also through SDK javascript API?

Thanks

Hi Anita,

MIP SDK Mobile is only a subset of the “regular” MIP SDK and does not provide everything that is available trough the .NET SDK.

Unfortunately this is the case with the Status API, as well as with the Config API.

From what you’ve described the only things you could retrieve trough the Mobile SDK are

  • PTZ presence of the camera - as result of GetAllViewsAndCameras, GetCapabilities or RequestStream commands
  • Motion and Recordings statuses, but only if they are extracted from the already started and running video stream. Which could be a little bit overkill for that purpose.

Hi Anita,

you can try :

you can call XPMobileSDK.getAllViews((items) => {

});

which will return you all the cameras and views in the system with details if they support PTZ or not, name etc.

You have to filter them in order to get that you want.

/Teodor