use of com.tencentcloudapi.vod.v20180717.models.DeleteMediaResponse in project cloud-sdk by mizhousoft.
the class QCloudVODServiceImpl method deleteVideo.
/**
* {@inheritDoc}
*/
@Override
public void deleteVideo(String fileId) throws CloudSDKException {
try {
DeleteMediaRequest req = new DeleteMediaRequest();
req.setFileId(fileId);
DeleteMediaResponse resp = vodClient.DeleteMedia(req);
LOG.info("Delete video successfully. requestid is {}.", resp.getRequestId());
} catch (TencentCloudSDKException e) {
throw new CloudSDKException(e.getErrorCode(), e.getMessage(), e);
}
}
Aggregations