Request a screenshot

Use the screenshot command to get the screenshot of the video stream.

Examples of the requests:

        https://192.168.1.200:8080/screenshot/XjwUsj8w?sid=OhiEj3U
        https://192.168.1.200:8080/screenshot/XjwUsj8w?figures=1&sid=OhiEj3U
        https://192.168.1.200:8080/screenshot?channel=XjwUsj8w&figures=1&password=12345  

The requests use the following parameters:

  • XjwUsj8w or channel=XjwUsj8w - GUID of the channel from which the screenshot is requested;
  • figures=1 a parameter that adds figures to the screenshot;
  • sid=OhiEj3U - session id.

You will receive a frame from the specified channel with figures on it, as a response.

When connecting to multiple servers, you can request a screenshot from the channel connected to one of them.

Example of a request:

        https://192.168.1.200:8080/screenshot?server=HTwUsj8I&channel=XjwUsj8w&sid=OhiEj3U  

The request uses the following parameters:

  • server=HTwUsj8I - GUID of server from which the screenshot is requested;
  • channel=XjwUsj8w - GUID of server channel;
  • sid=OhiEj3U - session id.

A frame from the specified channel on one of the connected servers will be received as a response to the request.

The same command screenshot with the timestamp parameter, with the date and time, is used to take a screenshot from the archive.

Examples of the requests:

        https://192.168.1.200:8080/screenshot/XjwUsj8w?timestamp=20140225T112001&sid=XOhiEj3I
        https://192.168.1.200:8080/screenshot/XjwUsj8w?timestamp=20140225T11200&figures=1&sid=XOhiEj3I
        https://10.16.16.89:8080/screenshot?channel=XjwUsj8w&timestamp=20140225T112001&figures=1&password=12345  

The requests use the following parameters:

  • XjwUsj8w or channel=XjwUsj8w - GUID of the channel from which the screenshot is requested;
  • timestamp=20140225T112001 - The time of a frame saved in the archive, specified in one of the following formats:
    • YYYY-MM-DD HH:MM:SS
    • YYYY-MM-DDTHH:MM:SS
    • YYYYMMDD-HHMMSS
    • YYYYMMDDTHHMMSS
    • or UNIX(10 characters) or TIMESTAMP(16 characters) formats.

    Tip

    If timestamp=0 or is omitted, then the last saved frame is requested.

    Tip

    The time is indicated according to time zone configured on the server.

  • figures=1 a parameter that adds figures to the screenshot;
  • sid=XOhiEj3I - The session ID.

A frame from the specified channel will be received in response to the request.