Package de.bitzeche.video.transcoding.zencoder.job

Examples of de.bitzeche.video.transcoding.zencoder.job.ZencoderThumbnail


public class ZencoderThumbnailTest {

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void testWithoutOptions() throws ParserConfigurationException {
    ZencoderThumbnail thumb = new ZencoderThumbnail();
    thumb.toString();
  }
View Full Code Here


    thumb.toString();
  }

  @Test
  public void testWithOptions() throws ParserConfigurationException {
    ZencoderThumbnail thumb = new ZencoderThumbnail();
    thumb.setBaseUrl("http://url/");
    thumb.setNumber(101);
    thumb.setInterval(10);
    thumb.setPrefix("abc");
    thumb.setSize("120x1999");
    thumb.setFormat(ZencoderThumbnailFormat.JPG);
    String doc = StringUtil.stripSpacesAndLineBreaksFrom(thumb.toString());
    String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><thumbnails><number>101</number><interval>10</interval><size>120x1999</size><format>jpg</format><base_url>http://url/</base_url><prefix>abc</prefix><public>0</public></thumbnails>";
    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
  }
View Full Code Here

    ZencoderWatermark watermark = new ZencoderWatermark("http://url/");
    ZencoderWatermark watermark2 = new ZencoderWatermark("http://url/");
    ZencoderNotification notif = new ZencoderNotification("test@test.de");
    ZencoderNotification notif2 = new ZencoderNotification("test2@test.de");
    ZencoderThumbnail thumb = new ZencoderThumbnail();
    thumb.setInterval(10);
    List<ZencoderS3AccessControlRight> rights = new ArrayList<ZencoderS3AccessControlRight>();
    rights.add(ZencoderS3AccessControlRight.FULL_CONTROL);
    rights.add(ZencoderS3AccessControlRight.READ);
    ZencoderS3AccessControlItem s3 = new ZencoderS3AccessControlItem(
        "test", rights);
    thumb.addAcl(s3);
    ZencoderOutput out = new ZencoderOutput("test", "se://test/");
    ZencoderOutput out2 = new ZencoderOutput("test2", "se://test2/");
    out.addAcl(s3);
    out.addNotification(notif);
    out.addNotification(notif2);
View Full Code Here

TOP

Related Classes of de.bitzeche.video.transcoding.zencoder.job.ZencoderThumbnail

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.