类 EvsClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.evs.EvsClient
-
public class EvsClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service EVS.
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringFIstatic StringFI_COMMANDstatic StringGOTOstatic StringPRESETstatic StringPTZ_COMMANDstatic StringSPEED-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 EvsClient()EvsClient(BceClientConfiguration clientConfiguration)EvsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)EvsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers, boolean isHttpAsyncPutEnabled)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GbPresetAddResponseaddChannelPreset(long channelId, GbPresetAddRequest request)Used to add presets to the national standard equipment channel.BindDeviceResponsebindDeviceBySnCode(BindDeviceRequest request)Used to SnCode for binding bvcp equipmentDeviceCountResponsecountChannelRecoding(long channelId, long begin, long end)Used to query the number of video files of GB28181 device channelDeviceCountResponsecountChannelThumbnail(long channelId, long begin, long end)Used to query the number of screenshot files of the Gb28181 device channel.DeviceCountResponsecountDevicehumbnail(long deviceId, long begin, long end)Used to query the number of screenshot files of the RTMP device.DeviceCountResponsecountDeviceRecoding(long deviceId, long begin, long end)Used to query the number of video files of the RTMP device.DeviceCreateResponsecreateDevice(DeviceCreateRequest request)Use to add EVS device.SpaceCreateResponsecreateSpace(SpaceCreateRequest request)Used to create EVS spacevoiddeleteChannelPreset(long channelId, int presetId)Used to delete the preset position of the national standard equipment channel.voiddeleteDevice(long deviceId)Used to delete EVS device.voiddeleteSpace(long spaceId)Used to delete EVS space.voiddisableDevice(long deviceId, DeviceStopRequest request)Used to deactivate EVS devices.voiddisableSpace(long spaceId)Used to deactivate the EVS space.voidenableDevice(long deviceId)Used to enable EVS devices.voidenableSpace(long spaceId)Used to enable the EVS space.DeviceChannelSignedUrlResponsegenerateChannelSignedUrl(long channelId, String protocol)Used to obtain the channel broadcast signature address according to the domain nameDeviceSignedUrlResponsegenerateDeviceSignedUrl(String domain, String app, String stream, String protocol)Used to obtain the device broadcast signature address according to the domain nameDeviceChannelGetResponsegetChannel(long channelId)Used to view the specified GB28181 device channel.DeviceGetResponsegetDevice(long deviceId)Used to query EVS devices.GBConfigDownloadResponsegetDeviceGbConfigDownload(long deviceId)Used to query national standard equipment configuration information.SpaceGetResponsegetSpace(long spaceId)Used to query EVS space configuration information.voidgotoChannelPreset(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.DeviceChannelListResponselistChannel(long deviceId)Used to view the channel list of the GB28181 device.DeviceTsStorePageListResponselistChannelAiAnalysisResult(long channelId, String aiType, DeviceTsStoreListRequest request)It is used to query the AI analysis results of GB28181 device channels.GbPresetListResponselistChannelPreset(long channelId)Used to query the preset position list of the national standard equipment channel.DeviceTsStorePageListResponselistChannelRecord(long channelId, DeviceTsStoreListRequest request)Used to query the video file list of GB28181 device channel.DeviceTsStorePageListResponselistChannelThumbnail(long channelId, DeviceTsStoreListRequest request)Used to query the list of screenshot files of GB28181 device channel.DeviceTsStorePageListResponselistDeviceAiAnalysisResult(long deviceId, String aiType, DeviceTsStoreListRequest request)Used to query the AI analysis results of RTMP devices.DeviceTsStorePageListResponselistDeviceRecord(long deviceId, DeviceTsStoreListRequest request)Used to query the device's video file listDeviceTsStorePageListResponselistDeviceThumbnail(long deviceId, DeviceTsStoreListRequest request)Used to query the device's screenshot file listDeviceMarkListResponselistMarkDevice(DeviceListMarkRequest request)Use to query all the devices in user space below the list, by marker query.SpaceMarkListResponselistSpaceByMarker(SpaceListMarkRequest request)Query EVS list of all Spaces under the user account in the way of Marker paging.voidmodifyChannelFi(long channelId, String fiCommand, int speed)Used to adjust the aperture and focus of the national standard equipment channel.voidmodifyChannelPtz(long channelId, String ptzCommand, int speed)Used to perform PTZ operation on the national standard equipment channel.voidmodifyDeviceGbPassword(long deviceId, GBDevicePasswordRequest request)Used to modify the user password of the GB28181 device.voidrefreshChannels(long deviceId)Used to refresh the channel of the specified GB28181 device.voidremoveChannelRecord(long channelId, long begin, long end)Used to delete the video files of the GB28181 device channel.voidremoveChannelThumbnail(long channelId, long begin, long end)Used to delete the screenshot file of the GB28181 device channel.voidremoveDeviceRecord(long deviceId, long begin, long end)Used to delete the video files of the RTMP device.voidremoveDeviceThumbnail(long deviceId, long begin, long end)Used to delete the screenshot files of the RTMP device.voidstartChannel(long channelId)Used to enable the specified channel of the GB28181 device.voidstopChannel(long channelId, DeviceStopRequest request)Used to deactivate the designated channel of the GB28181 device.voidteleBootDevice(long deviceId)Used to restart the GB28181 device.DeviceChannelGetResponsetrafficFrameDevice(long channelId, DynamicTrafficFrameRequest dynamicTrafficFrame)Used to set the size of the equipment monitoring framevoidupdateDevice(long deviceId, DeviceUpdateRequest request)Used to modify EVS device configuration.voidupdateSpace(long spaceId, SpaceUpdateRequest request)Used to modify EVS space configuration.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
EvsClient
public EvsClient()
-
EvsClient
public EvsClient(BceClientConfiguration clientConfiguration)
-
EvsClient
public EvsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
EvsClient
public EvsClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers, boolean isHttpAsyncPutEnabled)
-
-
方法详细资料
-
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 idrequest- 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
-
createDevice
public DeviceCreateResponse createDevice(DeviceCreateRequest request)
Use to add EVS device.- 参数:
request- Create the required data- 返回:
- device id
-
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 idrequest- 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 deactivatedrequest- 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 idrequest- 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 idbegin- 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 idbegin- 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 idrequest- 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 idbegin- 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 idbegin- 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 idaiType- 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_NOISErequest- 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 nameapp- device appstream- device streamprotocol- 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 IDdynamicTrafficFrame- 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 idrequest- 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 idrequest- 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 idprotocol- 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 idrequest- 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 idbegin- 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 idbegin- 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 idrequest- 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 idbegin- 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 idbegin- 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 idaiType- 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_NOISErequest- 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 idptzCommand- ptz command, support: stop/left/right/up/down/zoomin/zoomout/left_up/left_down/right_up/right_downspeed- 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 idfiCommand- support:stop/irisin/irisout/focusnear/focusfarspeed- 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 idrequest- 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 idpresetId- 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 idpresetId- preset Id
-
bindDeviceBySnCode
public BindDeviceResponse bindDeviceBySnCode(BindDeviceRequest request)
Used to SnCode for binding bvcp equipment- 参数:
request- Bind the required data- 返回:
- deviceId and snCode
-
-