Examples of Video


Examples of com.skyline.wo.model.Video

    /**
     * 视频简介
     */
    String summary = doc.select("meta[name=Description]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
    video.setTime(time);
    video.setSource("酷6视频");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(htmlCode);
    return video;

  }
View Full Code Here

Examples of com.skyline.wo.model.Video

     */
    Element flashEt = doc.getElementById("video-share-code");
    doc = Jsoup.parse(flashEt.attr("value"));
    String flash = doc.select("embed").attr("src");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
    video.setSource("6间房");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));

    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    /**
     * 视频简介
     */
    String summary = doc.select("meta[name=Description]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
    video.setSource("56视频");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    /**
     * flash地址
     */
    String flash = getScriptVarByName("swfOutsideUrl", content);

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
    video.setFlashUrl(flash);
    video.setSource("新浪视频");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    /**
     * 视频FLASH地址
     */
    String flash = "http://share.vrs.sohu.com/" + videoId + "/v.swf&autoplay=false";

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(thumbnail);
    video.setFlashUrl(flash);
    video.setSource("搜狐视频");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    long ss = Long.parseLong(time);
    long hour = ss / 3600;
    long minute = ss % 3600 / 60;
    long second = ss % 60;

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(thumbnail);
    video.setFlashUrl(flash);
    video.setTime(hour + ":" + minute + ":" + second);
    video.setSource("凤凰视频");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    /**
     * 视频缩略图
     */
    String thumbnail = doc.select("meta[property=og:image]").attr("content");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(thumbnail);
    video.setFlashUrl(flash);
    video.setSource("音悦台MV");
    video.setPageUrl(url);
    video.setSummary(summary);
    video.setHtmlCode(getHtmlCode(flash));
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    }
  }

  @SuppressWarnings("deprecation")
  private void addVideoShare(Long sharerId, String sharerNickname, String sharerPortrait, Long resourceId) {
    Video video = videoService.getVideoById(resourceId);
    Map<String, Object> valueMap = new HashMap<String, Object>();
    valueMap.put("sharerId", sharerId);
    valueMap.put("videoId", video.getId());
    valueMap.put("videoHtmlCode", video.getHtmlCode());
    valueMap.put("thumbnail", video.getThumbnail());
    valueMap.put("videoSummary", video.getSummary());
    String resourceDigest = FreeMarkerUtils.getVideoDigest( valueMap);
    Long shareId = shareDao.insertShare(sharerId, sharerNickname, sharerPortrait, ShareType.VIDEO, resourceId, video.getTitle(),
        "<img src='" + video.getThumbnail() + "'/><br>" + video.getSummary(), video.getOwnerId(), video.getOwnerNickname(),
        video.getOwnerPortrait(), null, null);
    personalFeedService.addFeed(shareId, video.getTitle(), resourceDigest, sharerId, sharerNickname, sharerPortrait, sharerId,
        FeedType.VIDEO_SHARE);
    // return shareId;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    return MAPPER;
  }
 
  @Override
  public Video mapRow(ResultSet rs, int arg1) throws SQLException {
    Video v=new Video();
    v.setCommentNum(rs.getInt("commentNum"));
    v.setCreateTime(rs.getTimestamp("createTime"));
    v.setDown(rs.getInt("down"));
    v.setFlashUrl(rs.getString("flashUrl"));
    v.setHtmlCode(rs.getString("htmlCode"));
    v.setId(rs.getLong("id"));
    v.setOwnerId(rs.getLong("ownerId"));
    v.setOwnerNickname(rs.getString("ownerNickname"));
    v.setOwnerPortrait(rs.getString("ownerPortrait"));
    v.setPageUrl(rs.getString("pageUrl"));
    v.setShareNum(rs.getInt("shareNum"));
    v.setSource(rs.getString("source"));
    v.setSummary(rs.getString("summary"));
    v.setThumbnail(rs.getString("thumbnail"));
    v.setTime(rs.getString("time"));
    v.setTitle(rs.getString("title"));
    v.setUp(rs.getInt("up"));
    //v.setUpdateTime()
    v.setVisitNum(rs.getInt("visitNum"));
    //v.setDigest(rs.getString("digest"));
    return v;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

  Video queryVideoInfo(String url) {
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user == null || user.getId() == 0) {
      return null;
    } else {
      Video video;
      try {
        video = videoService.queryVideoInfo(url);
        if (video != null) {
          video.setOwnerId(user.getId());
          video.setOwnerNickname(user.getNickname());
          video.setOwnerPortrait(user.getPortrait());
          WebHelper.setSessionAttribute(null, "lastQueryVideoInfo", video);
        }
      } catch (Exception e) {
        // 对出错的情况进行处理
        video = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.