| | |
| | | return detail; |
| | | } |
| | | |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo) throws Exception { |
| | | public VideoInfo getVideoInfo(InternetSearchVideo internetSearchVideo,int pageSize) throws Exception { |
| | | MogoTVSearchVideoMap map = mogoTVService.selectMapByVideoId(internetSearchVideo.getId()); |
| | | if (map == null) { |
| | | throw new Exception("视频源不存在"); |
| | | } |
| | | |
| | | MogoTVClipInfo showDetail = mogoTVService.getSimpleClipDetail(map.getClipId()); |
| | | showDetail.setVideoList(mogoTVService.getVideoList(showDetail.getClipId(), 1, 100)); |
| | | showDetail.setVideoList(mogoTVService.getVideoList(showDetail.getClipId(), 1, pageSize,"综艺".equalsIgnoreCase(showDetail.getFstlvlType())?false:true)); |
| | | VideoInfo info = VideoInfoFactory.create(internetSearchVideo); |
| | | info.setIntroduction(showDetail.getStory()); |
| | | info.setVideoDetailList(MogoTVUtil.convertToDetail(showDetail.getVideoList(), showDetail)); |
| | |
| | | VideoResource videoResource = videoResourceService.getResource(resourceid + ""); |
| | | playUrl.setResource(videoResource); |
| | | MogoTVVideo mogoTVVideo = mogoTVService.getVideoDetail(id); |
| | | playUrl.setUrl("https://www.mgtv.com"+mogoTVVideo.getUrl()); |
| | | playUrl.setUrl("https://m.mgtv.com"+mogoTVVideo.getUrl()); |
| | | playUrl.setPlayType(1); |
| | | playUrl.setParams(""); |
| | | return playUrl; |