Package com.netfever.site.dynovisz.tools.api

Examples of com.netfever.site.dynovisz.tools.api.Video


      final List<Video> videos = new ArrayList<>();
     
      for (VideoSummary v: summaries) {
        final String html = HttpUtils.get(v.getPageUrl());
        final String hash = DigestUtils.md5Hex(html);
        final Video video = getVideos(v, html);
       
        video.setHash(hash);
       
        videos.add(video);
        count++;
        LOGGER.info(count + ". Video at " + v.getPageUrl() + " has been processed");
       
View Full Code Here


  private static Video getVideos(final VideoSummary v, final String data) throws IOException {
      final ContentSaxParser parser = new ContentSaxParser();
      XmlUtils.processXml(parser, data);

      final Video res = parser.getVideo();
      res.setSummary(v);
       
      return res;
  }
View Full Code Here

TOP

Related Classes of com.netfever.site.dynovisz.tools.api.Video

Copyright © 2018 www.massapicom. 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.