Skip to content

Commit f158a37

Browse files
author
Patrice Brend'amour
committed
more work on the usage how to
1 parent 96449f8 commit f158a37

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,31 @@ ApacheHttpClientHandler apacheHttpClientHandler = new ApacheHttpClientHandler(cl
2424
ApacheHttpClient httpClient = new ApacheHttpClient(apacheHttpClientHandler);
2525
zencoderClient.setHttpClient(httpClient);
2626
```
27-
### Create Output
28-
```java
29-
//Add notification email
30-
ZencoderNotification notification = new ZencoderNotification("test@test.de");
31-
32-
ZencoderOutput output = new ZencoderOutput("test", "se://test/");
33-
output.addNotification(notification);
3427

28+
### Create Job
29+
```java
3530
ZencoderJob job = new ZencoderJob("http://ca.bitzeche.de/big_buck_bunny_720p_h264.mov");
36-
job.addOutput(output);
31+
3732
//region where the job is processed
3833
job.setZencoderRegion(ZencoderRegion.EUROPE);
34+
3935
//set test mode
4036
job.setTest(true);
4137
```
4238

39+
### Create Output
40+
```java
41+
ZencoderOutput output = new ZencoderOutput("test", "se://test/");
42+
job.addOutput(output);
43+
```
44+
45+
### Create Notification
46+
```java
47+
//Add notification email
48+
ZencoderNotification notification = new ZencoderNotification("test@test.de");
49+
output.addNotification(notification);
50+
```
51+
4352
### Submit Job
4453
```java
4554
client.createJob(job);

0 commit comments

Comments
 (0)