Package railo.runtime.video

Examples of railo.runtime.video.VideoInputImpl


    VideoPlayerParamBean param;
   
    while(it.hasNext()) {
      param = (VideoPlayerParamBean) it.next();
      if(param.getVideo()!=null)
        sources.add(new VideoInputImpl(param.getVideo()));
    }
    return VideoUtilImpl.getInstance().calculateDimension(pc, (VideoInput[])sources.toArray(new VideoInput[sources.size()]), width, strWidth, height, strHeight);
   
  }
View Full Code Here


  public static boolean call(PageContext pc, String path) throws PageException {
    try {
      ConfigWeb config = pc.getConfig();
      VideoExecuter ve = VideoUtilImpl.createVideoExecuter(config);
      ve.info(config,new VideoInputImpl(Caster.toResource(pc,path, true)));
    }
    catch (Exception e) {
     
      if(StringUtil.contains(e.getMessage(),"missing ffmpeg installation"))
        throw Caster.toPageException(e);
View Full Code Here

  /**
   * @param source the source to set
   * @throws PageException
   */
  public void setSource(String source) throws PageException {
    this.source = new VideoInputImpl(ResourceUtil.toResourceExisting(pageContext, source));
  }
View Full Code Here

    checkFile(source2,"source2", true, true, false);
    if(!checkDestination(source1,destination,name,nameconflict)) return;

    Pair s1 =toMpeg(source1);
    Pair s2 =toMpeg(source2);
    source = new VideoInputImpl(pageContext.getConfig().getTempDirectory().getRealResource("tmp-"+new Random().nextInt()+".mpg"));
    try {
      merge(s1.res,s2.res,source.getResource());
      Struct sct = doActionConvert();
      sct.setEL(SOURCE1, s1.sct);
      sct.setEL(SOURCE2, s2.sct);
View Full Code Here

  /**
   * @param source1 the source1 to set
   * @throws PageException
   */
  public void setSource1(String source1) throws PageException {
    this.source1 = new VideoInputImpl(ResourceUtil.toResourceExisting(pageContext, source1));
  }
View Full Code Here

  /**
   * @param source2 the source2 to set
   * @throws PageException
   */
  public void setSource2(String source2) throws PageException {
    this.source2 = new VideoInputImpl(ResourceUtil.toResourceExisting(pageContext, source2));
  }
View Full Code Here

TOP

Related Classes of railo.runtime.video.VideoInputImpl

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.