Examples of Video


Examples of com.skyline.wo.model.Video

  }

  @RequestMapping(value = "/addVideo", method = RequestMethod.POST)
  @ResponseBody
  public long addVideo(Video modifyedVideo) {
    Video video = (Video) WebHelper.getSessionAttribute(null, "lastQueryVideoInfo");
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (video == null || user == null || user.getId() == 0) {
      return 0;
    } else {
      long id = videoService.addVideo(user.getId(), user.getPortrait(), user.getNickname(), modifyedVideo.getTitle(),
          video.getThumbnail(), modifyedVideo.getSummary(), video.getTime(), video.getSource(), video.getPageUrl(),
          video.getFlashUrl(), video.getHtmlCode());
      return id;
    }
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

  }

  @RequestMapping(value = "/view/{id}", method = RequestMethod.GET)
  public ModelAndView view(@PathVariable Long id) {
    ModelAndView mav = new ModelAndView();
    Video video = videoService.getVideoById(id);
    mav.addObject("video", video);
    mav.setViewName(ViewPaths.VIDEO_VIEW);
    return mav;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

  @Override
  @Cache(keyPattern = "video-:id", type = CacheCategoryType.VIDEO)
  public Video queryVideoById(@Param("id") Long id) throws NoResourceException {
    try {
      Video video = jdbcTemplate.queryForObject(queryVideoByIdSql, VideoMapper.getMapper(), id);
      return video;
    } catch (Exception e) {
      throw new NoResourceException("id为" + id + "的视频不存在");
    }
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    return id;
  }

  @Override
  public Video getVideoById(Long id) throws NoResourceException {
    Video video = videoDao.queryVideoById(id);
    videoDao.updateVideoVisitNum(id);
    return video;
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

    //ownerPortrait, ownerNickname, title, thumbnail, summary, time, source, pageUrl, flashUrl, htmlCode)
  }
 
  //@Test
  public void testQueryById(){
    Video video=videoService.getVideoById(2l);
    System.out.println(video.getTitle());
  }
View Full Code Here

Examples of com.skyline.wo.model.Video

        "http://v.youku.com/v_playlist/f16570114o1p0.html",
        "http://v.youku.com/v_show/id_XMzE1ODc2OTY4.html",
        };
    for(String url:urls){
      try {
        Video video=videoService.queryVideoInfo(url);
        System.out.println("出处:\t"+video.getSource());
        System.out.println("标题:\t"+video.getTitle());
        System.out.println("片长:\t"+video.getTime());
        System.out.println("缩略图:\t"+video.getThumbnail());
        System.out.println("flash地址:\t"+video.getFlashUrl());
        System.out.println("html代码:\t"+video.getHtmlCode());
        System.out.println("链接:\t"+video.getPageUrl());
        System.out.println("简介:\t"+video.getSummary());
        System.out.println("==========================");
      } catch (Exception e) {
        //e.printStackTrace();
        System.out.println(url);
      }
View Full Code Here

Examples of com.vaadin.ui.Video

public class Media extends TestBase {

    @Override
    protected void setup() {
        final Video v = new Video("video");
        v.setSources(
                new ExternalResource(
                        "http://jonatan.virtuallypreinstalled.com/media/big_buck_bunny.mp4"),
                new ExternalResource(
                        "http://jonatan.virtuallypreinstalled.com/media/big_buck_bunny.ogv"));
        v.setWidth("640px");
        v.setHeight("360px");
        addComponent(v);
        addComponent(new Button("Play video", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                v.play();
            }

        }));
        addComponent(new Button("Pause video", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                v.pause();
            }

        }));

        final Audio a = new Audio("audio");
View Full Code Here

Examples of com.volantis.map.sti.model.Video

     *
     * @param prefix prefix of parameter where parameter can be found.
     * @return video model object.
     */
    private Video getVideo() throws ConverterException {
        Video video = new Video();

        setMediaParameters(video);

        String limitParameter = getParameterValue(ParameterNames.MAX_VIDEO_SIZE);

        if (limitParameter != null) {
            video.setSizeLimit(Long.parseLong(limitParameter));
        }

        video.setVideoAudio(getVideoAudio());
        video.setVideoVisual(getVideoVisual());

        return video;
    }
View Full Code Here

Examples of de.agilecoders.wicket.extensions.markup.html.bootstrap.html5player.Video

  public ExtensionsPage(PageParameters parameters) {
    super(parameters);

    List<Html5Player.IVideo> videos = Lists
        .<Html5Player.IVideo> newArrayList(
                    new Video(
                        "http://ia700305.us.archive.org/18/items/CopyingIsNotTheft/CINT_Nik_H264_720.ogv",
                        "video/ogg"),
                    new Video(
                        "http://ia700305.us.archive.org/18/items/CopyingIsNotTheft/CINT_Nik_H264_720_512kb.mp4",
                        "video/mp4"));
    add(new Html5Player("video", Model.ofList(videos)));
    add(new Code(
        "video-code",
View Full Code Here

Examples of design_patterns.strategy.Video

        * it calls this method, which resets the string buffer
        */
       public void startElement(String uri, String localName,String qName, Attributes attributes) throws SAXException {
              temp = "";
              if (qName.equalsIgnoreCase("Object")) {
                     this.video = new Video();
              }
       }
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.