コード例 #1
0
 /** Encode a STORE request */
 @Override
 public void encodeStore(ControllerImpl c, OutputStream os) throws IOException {
   VapixCmd cmd = new VapixCmd(VapixCmd.CMD_PTZ);
   cmd.addParam(VapixCmd.PARAM_CAMERA, c.getDrop());
   cmd.addParam(VapixCmd.PARAM_ZOOM, zoom);
   issueRequest(c, os, cmd);
 }
コード例 #2
0
 /** Get an input stream for the specified controller */
 @Override
 public InputStream getInputStream(String p, ControllerImpl c) throws IOException {
   path = p;
   // make a new HTTP connection each time called
   close();
   open(c.getPassword());
   return input;
 }