Render Video and Upload to S3

FXRenderClient fx = FXRenderClient.builder()
    .withProvider(new StaticCredentialsProvider("api key", "apis secret"))
    .withRegion(Regions.EU_CENTRAL_1)
    .build();    

Map<String, String> params = new HashMap<String, String>();
params.put("some-variable", "Some Personalized Text");

TokenResponse resp = fx.renderToDestination(
    new TokenRequest()
            .withProjectID("some project ID")
            .withMovie("some movie template identifier")
            .withParams(params),
    new UploadDefinition()
            .withFormat("mp4")
            .withDestination(new S3()
                    .withAws_access_key_id("AWS ACCESS KEY ID")
                    .withAws_secret_access_key("AWS SECRET ACCESS KEY")
                    .withBucket("my-bucket")
                    .withFilename("my-filename-for-this-video.mp4")));
                    
System.out.println("S3 URL of video is: " + resp.getUpload().getResult());

Terms of Use | © 2017, Impossible Software, or its affiliates. All rights reserved.