|
|
@@ -145,14 +145,15 @@ public class PolyvLiveServiceImpl implements IPolyvLiveService {
|
|
|
Calendar instance = Calendar.getInstance();
|
|
|
instance.set(2020, 10, 1);
|
|
|
liveListChannelSessionInfoRequest.setChannelId(bo.getChannelId())
|
|
|
- .setStartDate(instance.getTime())
|
|
|
- .setEndDate(new Date())
|
|
|
+ .setStartDate(new Date((bo.getStartTime()*1000)))
|
|
|
+ .setEndDate(new Date((bo.getEndTime()*1000)))
|
|
|
.setCurrentPage(1);
|
|
|
liveListChannelSessionInfoResponse = new LiveChannelPlaybackServiceImpl().listChannelSessionInfo(
|
|
|
liveListChannelSessionInfoRequest);
|
|
|
if (liveListChannelSessionInfoResponse != null) {
|
|
|
if(Validator.isNotEmpty(liveListChannelSessionInfoResponse.getContents())&&liveListChannelSessionInfoResponse.getContents().size()>0){
|
|
|
//获取该房间最近一次场次
|
|
|
+ System.out.println(JSON.toJSONString(liveListChannelSessionInfoResponse));
|
|
|
LiveListChannelSessionInfoResponse.ChannelSessionInfo sessionInfo = liveListChannelSessionInfoResponse.getContents().get(0);
|
|
|
bo.setSessionId(sessionInfo.getSessionId());
|
|
|
return getChannelVideo(bo);
|