POST api/v1/videoConfig/moveCamera

The MoveCamera method is used to request that the camera be moved in the specified direction by the specified PAN and TILT values.

Request Information

URI Parameters

None.

Body Parameters

MAC Address (unique identifier) for the camera in question.

MoveCameraInfo
NameDescriptionTypeAdditional information
MAC

string

None.

direction

integer

None.

degrees

integer

None.

panSpeed

integer

None.

tiltSpeed

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MAC": "sample string 1",
  "direction": 2,
  "degrees": 3,
  "panSpeed": 4,
  "tiltSpeed": 5
}

application/xml, text/xml

Sample:
<MoveCameraInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2WebAPIController.Models.V1">
  <MAC>sample string 1</MAC>
  <degrees>3</degrees>
  <direction>2</direction>
  <panSpeed>4</panSpeed>
  <tiltSpeed>5</tiltSpeed>
</MoveCameraInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResults object: ResultCode: Numerical indication of success/failure. 0=Success, Failure otherwise ResultData: Textual information, additional to the ResultCode as necessary.

BaseResults
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "ResultData": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">
  <ResultCode>1</ResultCode>
  <ResultData>sample string 2</ResultData>
</BaseResults>