类 EvsClient


  • public class EvsClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service EVS.
    • 方法详细资料

      • createSpace

        public SpaceCreateResponse createSpace​(SpaceCreateRequest request)
        Used to create EVS space
        参数:
        request - Create the required data
        返回:
        spaceId 、Upstream and Downstream domain
      • deleteSpace

        public void deleteSpace​(long spaceId)
        Used to delete EVS space. Delete the specified space according to the space ID. After the space is deleted, all devices in the space will also be deleted.
        参数:
        spaceId - space id
      • updateSpace

        public void updateSpace​(long spaceId,
                                SpaceUpdateRequest request)
        Used to modify EVS space configuration.
        参数:
        spaceId - space id
        request - Update the required data
      • getSpace

        public SpaceGetResponse getSpace​(long spaceId)
        Used to query EVS space configuration information.
        参数:
        spaceId - space id
        返回:
        matching space details
      • listSpaceByMarker

        public SpaceMarkListResponse listSpaceByMarker​(SpaceListMarkRequest request)
        Query EVS list of all Spaces under the user account in the way of Marker paging.
        参数:
        request - Criteria used to filter at query time
      • disableSpace

        public void disableSpace​(long spaceId)
        Used to deactivate the EVS space.
        参数:
        spaceId - The space ID to be stopped
      • enableSpace

        public void enableSpace​(long spaceId)
        Used to enable the EVS space.
        参数:
        spaceId - The space ID to be started
      • deleteDevice

        public void deleteDevice​(long deviceId)
        Used to delete EVS device.
        参数:
        deviceId - device id
      • updateDevice

        public void updateDevice​(long deviceId,
                                 DeviceUpdateRequest request)
        Used to modify EVS device configuration.
        参数:
        deviceId - device id
        request - Modified information
      • getDevice

        public DeviceGetResponse getDevice​(long deviceId)
        Used to query EVS devices.
        参数:
        deviceId - device id
        返回:
        Matching device details
      • listMarkDevice

        public DeviceMarkListResponse listMarkDevice​(DeviceListMarkRequest request)
        Use to query all the devices in user space below the list, by marker query.
        参数:
        request - Conditions for filtering by paging queries
        返回:
        Device list of marker data
      • disableDevice

        public void disableDevice​(long deviceId,
                                  DeviceStopRequest request)
        Used to deactivate EVS devices.
        参数:
        deviceId - The device ID that needs to be deactivated
        request - stop time, If request is null, the device is permanently deactivated. If the request body contains a recoverTime parameter, deactivate the device until the recoverTime time is specified.
      • enableDevice

        public void enableDevice​(long deviceId)
        Used to enable EVS devices.
        参数:
        deviceId - The device ID that needs to be enabled
      • listDeviceRecord

        public DeviceTsStorePageListResponse listDeviceRecord​(long deviceId,
                                                              DeviceTsStoreListRequest request)
        Used to query the device's video file list
        参数:
        deviceId - device id
        request - Query required conditions:Recording start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching video file paging data
      • countDeviceRecoding

        public DeviceCountResponse countDeviceRecoding​(long deviceId,
                                                       long begin,
                                                       long end)
        Used to query the number of video files of the RTMP device.
        参数:
        deviceId - device id
        begin - Recording start time, Unix timestamp, in seconds.
        end - Recording end time, Unix timestamp, in seconds,
        返回:
        Recording count
      • removeDeviceRecord

        public void removeDeviceRecord​(long deviceId,
                                       long begin,
                                       long end)
        Used to delete the video files of the RTMP device.
        参数:
        deviceId - device id
        begin - Recording start time, Unix timestamp, in seconds.
        end - Recording end time, Unix timestamp, in seconds,
      • listDeviceThumbnail

        public DeviceTsStorePageListResponse listDeviceThumbnail​(long deviceId,
                                                                 DeviceTsStoreListRequest request)
        Used to query the device's screenshot file list
        参数:
        deviceId - device id
        request - Query required conditions:Thumbnail start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching screenshot file paging data
      • countDevicehumbnail

        public DeviceCountResponse countDevicehumbnail​(long deviceId,
                                                       long begin,
                                                       long end)
        Used to query the number of screenshot files of the RTMP device.
        参数:
        deviceId - device id
        begin - Thumbnail start time, Unix timestamp, in seconds.
        end - Thumbnail end time, Unix timestamp, in seconds,
        返回:
        Thumbnail count
      • removeDeviceThumbnail

        public void removeDeviceThumbnail​(long deviceId,
                                          long begin,
                                          long end)
        Used to delete the screenshot files of the RTMP device.
        参数:
        deviceId - device id
        begin - Thumbnail start time, Unix timestamp, in seconds.
        end - Thumbnail end time, Unix timestamp, in seconds,
      • listDeviceAiAnalysisResult

        public DeviceTsStorePageListResponse listDeviceAiAnalysisResult​(long deviceId,
                                                                        String aiType,
                                                                        DeviceTsStoreListRequest request)
        Used to query the AI analysis results of RTMP devices. It is only used for devices with AI skill configuration enabled in the space configuration.
        参数:
        deviceId - device id
        aiType - AI detection type,Support: FACE、BODY、ELECTRIC、CAR_ATTRIBUTE、CAR_MODEL、CAR_PLATE,STATIC_HUMAN_TRAFFIC、STATIC_CAR_TRAFFIC、 QUALITY_BRIGHT、QUALITY_COLOR、QUALITY_COVER、QUALITY_BLUR、QUALITY_NOISE
        request - Query required conditions:Recording start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching screenshot file paging data
      • generateDeviceSignedUrl

        public DeviceSignedUrlResponse generateDeviceSignedUrl​(String domain,
                                                               String app,
                                                               String stream,
                                                               String protocol)
        Used to obtain the device broadcast signature address according to the domain name
        参数:
        domain - domain name
        app - device app
        stream - device stream
        protocol - Agreement name
        返回:
        url string
      • getDeviceGbConfigDownload

        public GBConfigDownloadResponse getDeviceGbConfigDownload​(long deviceId)
        Used to query national standard equipment configuration information.
        参数:
        deviceId - gb device id
        返回:
        The configuration details of the designated national standard equipment
      • teleBootDevice

        public void teleBootDevice​(long deviceId)
        Used to restart the GB28181 device.
        参数:
        deviceId - gb device id
      • trafficFrameDevice

        public DeviceChannelGetResponse trafficFrameDevice​(long channelId,
                                                           DynamicTrafficFrameRequest dynamicTrafficFrame)
        Used to set the size of the equipment monitoring frame
        参数:
        channelId - channelId ID
        dynamicTrafficFrame - equipment monitoring frame config info
        返回:
        channelId id
      • modifyDeviceGbPassword

        public void modifyDeviceGbPassword​(long deviceId,
                                           GBDevicePasswordRequest request)
        Used to modify the user password of the GB28181 device.
        参数:
        deviceId - gb device id
        request - new password
      • listChannel

        public DeviceChannelListResponse listChannel​(long deviceId)
        Used to view the channel list of the GB28181 device.
        参数:
        deviceId - gb device id
        返回:
        Channel list details of designated national standard equipment
      • refreshChannels

        public void refreshChannels​(long deviceId)
        Used to refresh the channel of the specified GB28181 device.
        参数:
        deviceId - gb device id
      • getChannel

        public DeviceChannelGetResponse getChannel​(long channelId)
        Used to view the specified GB28181 device channel.
        参数:
        channelId - channel id
        返回:
        Matching channel details
      • stopChannel

        public void stopChannel​(long channelId,
                                DeviceStopRequest request)
        Used to deactivate the designated channel of the GB28181 device.
        参数:
        channelId - channel id
        request - UTZ time, If it is empty, the device will be disabled permanently, if it is not empty, the device will be disabled until the recoverTime is specified
      • startChannel

        public void startChannel​(long channelId)
        Used to enable the specified channel of the GB28181 device.
        参数:
        channelId - channel id
      • generateChannelSignedUrl

        public DeviceChannelSignedUrlResponse generateChannelSignedUrl​(long channelId,
                                                                       String protocol)
        Used to obtain the channel broadcast signature address according to the domain name
        参数:
        channelId - channel id
        protocol - Agreement name
        返回:
        url string
      • listChannelRecord

        public DeviceTsStorePageListResponse listChannelRecord​(long channelId,
                                                               DeviceTsStoreListRequest request)
        Used to query the video file list of GB28181 device channel.
        参数:
        channelId - channel id
        request - Query required conditions:Recording start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching video file paging data
      • countChannelRecoding

        public DeviceCountResponse countChannelRecoding​(long channelId,
                                                        long begin,
                                                        long end)
        Used to query the number of video files of GB28181 device channel
        参数:
        channelId - channel id
        begin - Recording start time, Unix timestamp, in seconds.
        end - Recording end time, Unix timestamp, in seconds,
        返回:
        Recording count
      • removeChannelRecord

        public void removeChannelRecord​(long channelId,
                                        long begin,
                                        long end)
        Used to delete the video files of the GB28181 device channel.
        参数:
        channelId - channelId id
        begin - Recording start time, Unix timestamp, in seconds.
        end - Recording end time, Unix timestamp, in seconds,
      • listChannelThumbnail

        public DeviceTsStorePageListResponse listChannelThumbnail​(long channelId,
                                                                  DeviceTsStoreListRequest request)
        Used to query the list of screenshot files of GB28181 device channel.
        参数:
        channelId - channelId id
        request - Query required conditions:Thumbnail start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching screenshot file paging data
      • countChannelThumbnail

        public DeviceCountResponse countChannelThumbnail​(long channelId,
                                                         long begin,
                                                         long end)
        Used to query the number of screenshot files of the Gb28181 device channel.
        参数:
        channelId - channel id
        begin - Thumbnail start time, Unix timestamp, in seconds.
        end - Thumbnail end time, Unix timestamp, in seconds,
        返回:
        Thumbnail count
      • removeChannelThumbnail

        public void removeChannelThumbnail​(long channelId,
                                           long begin,
                                           long end)
        Used to delete the screenshot file of the GB28181 device channel.
        参数:
        channelId - channel id
        begin - Thumbnail start time, Unix timestamp, in seconds.
        end - Thumbnail end time, Unix timestamp, in seconds,
      • listChannelAiAnalysisResult

        public DeviceTsStorePageListResponse listChannelAiAnalysisResult​(long channelId,
                                                                         String aiType,
                                                                         DeviceTsStoreListRequest request)
        It is used to query the AI analysis results of GB28181 device channels. It is only used for the device channels with AI skill configuration enabled in the space configuration.
        参数:
        channelId - channel id
        aiType - AI detection type,Support: FACE、BODY、ELECTRIC、CAR_ATTRIBUTE、CAR_MODEL、CAR_PLATE,STATIC_HUMAN_TRAFFIC、STATIC_CAR_TRAFFIC、 QUALITY_BRIGHT、QUALITY_COLOR、QUALITY_COVER、QUALITY_BLUR、QUALITY_NOISE
        request - Query required conditions:Recording start and end time (Unix timestamp) 、pageNo、pageSize
        返回:
        Matching screenshot file paging data
      • modifyChannelPtz

        public void modifyChannelPtz​(long channelId,
                                     String ptzCommand,
                                     int speed)
        Used to perform PTZ operation on the national standard equipment channel.
        参数:
        channelId - channel id
        ptzCommand - ptz command, support: stop/left/right/up/down/zoomin/zoomout/left_up/left_down/right_up/right_down
        speed - Adjust the speed, support 1-255 for up, down, left and right operation, and 1-15 for zoom operation
      • modifyChannelFi

        public void modifyChannelFi​(long channelId,
                                    String fiCommand,
                                    int speed)
        Used to adjust the aperture and focus of the national standard equipment channel.
        参数:
        channelId - channel id
        fiCommand - support:stop/irisin/irisout/focusnear/focusfar
        speed - Adjust the speed, support 1-255
      • addChannelPreset

        public GbPresetAddResponse addChannelPreset​(long channelId,
                                                    GbPresetAddRequest request)
        Used to add presets to the national standard equipment channel.
        参数:
        channelId - channel id
        request - Preset position name, the maximum length is 100
        返回:
        Preset Id

        Note: Before initiating the request to add a preset position, make sure that the camera has been adjusted to the expected position and angle through the ptz control.

      • deleteChannelPreset

        public void deleteChannelPreset​(long channelId,
                                        int presetId)
        Used to delete the preset position of the national standard equipment channel.
        参数:
        channelId - channel id
        presetId - preset Id
      • listChannelPreset

        public GbPresetListResponse listChannelPreset​(long channelId)
        Used to query the preset position list of the national standard equipment channel.
        参数:
        channelId - channel id
        返回:
        Specify the list of all preset positions of GBT
      • gotoChannelPreset

        public void gotoChannelPreset​(long channelId,
                                      int presetId)
        Used to call the preset position of the national standard equipment channel, and quickly move the camera to the preset position.
        参数:
        channelId - channel id
        presetId - preset Id
      • bindDeviceBySnCode

        public BindDeviceResponse bindDeviceBySnCode​(BindDeviceRequest request)
        Used to SnCode for binding bvcp equipment
        参数:
        request - Bind the required data
        返回:
        deviceId and snCode