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)
      Description copied from interface: WebUIHandler
      Returns raw resources from /static/...
      Specified by:
      getResource in interface WebUIHandler
    • getRootPanel

      public Panel getRootPanel(WebUIClient client)
      Description copied from interface: WebUIHandler
      Returns a root panel for a new client.
      Specified by:
      getRootPanel in interface WebUIHandler
    • read

      public int read(MediaCoder coder, byte[] data)
      Specified by:
      read in interface MediaIO
    • write

      public int write(MediaCoder coder, byte[] data)
      Specified by:
      write in interface MediaIO
    • seek

      public long seek(MediaCoder coder, long pos, int type)
      Specified by:
      seek in interface MediaIO