/** 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); }
/** 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; }