Class TestCamera

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, MediaIO, WebUIHandler, Accessible, RootPaneContainer, WindowConstants

public class TestCamera extends JFrame implements WebUIHandler, MediaIO
See Also:
  • Constructor Details

    • TestCamera

      public TestCamera()
      Creates new form TestCamera
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args - the command line arguments
    • listCameras

      public void listCameras()
    • getCurrentTime

      public String getCurrentTime()
    • setState

      public void setState(boolean state)
    • clientConnected

      public void clientConnected(WebUIClient client)
      Description copied from interface: WebUIHandler
      Invoked when a client connects for init
      Specified by:
      clientConnected in interface WebUIHandler
    • clientDisconnected

      public void clientDisconnected(WebUIClient client)
      Description copied from interface: WebUIHandler
      Invoked when a client disconnects for cleanup
      Specified by:
      clientDisconnected in interface WebUIHandler
    • getResource

      public byte[] getResource(String url, HTTP.Parameters params, WebRequest request, WebResponse res)
      Description copied from interface: WebUIHandler
      Returns raw resources from /static/...
      Specified by:
      getResource in interface WebUIHandler
    • getPanel

      public Panel getPanel(String name, HTTP.Parameters params, WebUIClient client)
      Description copied from interface: WebUIHandler
      Returns a root panel for a new client.
      Specified by:
      getPanel in interface WebUIHandler
    • read

      public int read(MediaCoder coder, byte[] data)
      Description copied from interface: MediaIO
      Request to read data.
      Specified by:
      read in interface MediaIO
      Parameters:
      data - = buffer to receive data
    • write

      public int write(MediaCoder coder, byte[] data)
      Description copied from interface: MediaIO
      Request to write data.
      Specified by:
      write in interface MediaIO
      Parameters:
      data - = buffer of data to be written.
    • seek

      public long seek(MediaCoder coder, long pos, int type)
      Description copied from interface: MediaIO
      Request to seek file.
      Specified by:
      seek in interface MediaIO
      Parameters:
      pos - = position
      type - = how to seek (see MediaCoder.SEEK_... types)