Examples of ZencoderNotification


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

public class ZencoderNotificationTest {

  @Test
  public void test() throws ParserConfigurationException {
    ZencoderNotification notif = new ZencoderNotification("test@test.de");
    String doc = StringUtil.stripSpacesAndLineBreaksFrom(notif.toString());
    String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><notification><url>test@test.de</url></notification>";
    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
  }
View Full Code Here

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

    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
  }
  @Test
  public void testWithOptions() throws ParserConfigurationException {
    ZencoderNotification notif = new ZencoderNotification("test@test.de");
    notif.setFormat("xml");
    String doc = StringUtil.stripSpacesAndLineBreaksFrom(notif.toString());
    String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><notification><format>xml</format><url>test@test.de</url></notification>";
    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
  }
View Full Code Here

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

    Assert.assertEquals(doc, expected);
  }

    @Test
    public void testWithHeaders() throws ParserConfigurationException {
        ZencoderNotification notif = new ZencoderNotification("test@test.de");
        notif.setHeaders(new HashMap<String, String>(){{
            put("cloudfront_url", "http://asdjaosidjas.cloudfront.net");
        }});
        String doc = StringUtil.stripSpacesAndLineBreaksFrom(notif.toString());
        String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><notification><headers><cloudfront_url>http://asdjaosidjas.cloudfront.net</cloudfront_url></headers><url>test@test.de</url></notification>";
        // System.out.println(doc);
        Assert.assertEquals(doc, expected);
    }
View Full Code Here

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

  @Test
  public void createJobAndCheckXML() {

    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);
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.