Playback Sercice
1、查询录制视频
描述
查询录制视频
接口地址(仅做说明使用):https://api.polyv.net/live/v2/channels/%s/recordFiles调用约束
单元测试
@Test
public void testGetRecordInfo() throws IOException, NoSuchAlgorithmException {
SeminarGetRecordInfoRequest seminarGetRecordInfoRequest = new SeminarGetRecordInfoRequest();
List<SeminarGetRecordInfoResponse> seminarGetRecordInfoResponse;
try {
String channelId = super.getChannelId();
seminarGetRecordInfoRequest.setChannelId(channelId)
.setStartDate(super.getDate(1643163720000L))
.setEndDate(super.getDate(1643163780000L));
seminarGetRecordInfoResponse = new SeminarPlaybackServiceImpl().getRecordInfo(seminarGetRecordInfoRequest);
Assert.assertNotNull(seminarGetRecordInfoResponse);
if (seminarGetRecordInfoResponse != null) {
//to do something ......
log.debug("测试查询录制视频成功 {}", JSON.toJSONString(seminarGetRecordInfoResponse));
}
} catch (PloyvSdkException e) {
//参数校验不合格 或者 请求服务器端500错误,错误信息见PloyvSdkException.getMessage()
log.error(e.getMessage(), e);
// 异常返回做B端异常的业务逻辑,记录log 或者 上报到ETL 或者回滚事务
throw e;
} catch (Exception e) {
log.error("SDK调用异常", e);
throw e;
}
}单元测试说明
请求入参描述
参数名
必选
类型
说明
返回对象描述
参数名
类型
说明
2、删除录制视频
描述
调用约束
单元测试
单元测试说明
请求入参描述
参数名
必选
类型
说明
返回对象描述
Last updated