Zencoder API Client Library

An API client library for interacting with Zencoder

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.brightcove.zencoder.api
Идентификатор

Идентификатор

zencoder-java
Последняя версия

Последняя версия

2.0.23
Дата

Дата

Тип

Тип

jar
Описание

Описание

Zencoder API Client Library
An API client library for interacting with Zencoder
Ссылка на сайт

Ссылка на сайт

https://github.com/zencoder/zencoder-java
Система контроля версий

Система контроля версий

https://github.com/zencoder/zencoder-java

Скачать zencoder-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.brightcove.zencoder.api/zencoder-java/ -->
<dependency>
    <groupId>com.brightcove.zencoder.api</groupId>
    <artifactId>zencoder-java</artifactId>
    <version>2.0.23</version>
</dependency>
// https://jarcasting.com/artifacts/com.brightcove.zencoder.api/zencoder-java/
implementation 'com.brightcove.zencoder.api:zencoder-java:2.0.23'
// https://jarcasting.com/artifacts/com.brightcove.zencoder.api/zencoder-java/
implementation ("com.brightcove.zencoder.api:zencoder-java:2.0.23")
'com.brightcove.zencoder.api:zencoder-java:jar:2.0.23'
<dependency org="com.brightcove.zencoder.api" name="zencoder-java" rev="2.0.23">
  <artifact name="zencoder-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.brightcove.zencoder.api', module='zencoder-java', version='2.0.23')
)
libraryDependencies += "com.brightcove.zencoder.api" % "zencoder-java" % "2.0.23"
[com.brightcove.zencoder.api/zencoder-java "2.0.23"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.springframework : spring-web jar 4.1.0.RELEASE
org.codehaus.jackson : jackson-mapper-lgpl jar 1.9.13

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

zencoder-java

Java library for interacting with the Zencoder API.

Getting Started

Add the library as a dependancy to your project.

If you're using Maven, add this to your pom.xml file:

    <dependency>
          <groupId>com.brightcove.zencoder.api</groupId>
          <artifactId>zencoder-java</artifactId>
          <version>2.0.23</version>
    </dependency>

Import the client and related classes:

import com.brightcove.zencoder.client.ZencoderClient;
import com.brightcove.zencoder.client.ZencoderClientException;
import com.brightcove.zencoder.client.model.*
import com.brightcove.zencoder.client.request.*
import com.brightcove.zencoder.client.response.*;

Instantiate a new client with your API key:

ZencoderClient client = new ZencoderClient("INSERT_API_KEY_HERE");

Usage

Create a new job:

ZencoderCreateJobRequest job = new ZencoderCreateJobRequest();
job.setInput("s3://zencodertesting/test.mov");
List<ZencoderOutput> outputs = new ArrayList<ZencoderOutput>();

ZencoderOutput output1 = new ZencoderOutput();
output1.setFormat(ContainerFormat.MP4);
outputs.add(output1);

ZencoderOutput output2 = new ZencoderOutput();
output2.setFormat(ContainerFormat.WEBM);
outputs.add(output2);

job.setOutputs(outputs);
ZencoderCreateJobResponse response = client.createZencoderJob(job);

Query an existing job:

String jobId = response.getId();
ZencoderJobDetail details = client.getZencoderJob(jobId);
String inputId = details.getInputMediaFile().getId();
String outputId1 = response.getOutputs().get(0).getId();
String outputId2 = response.getOutputs().get(1).getId();

ZencoderInputOutputProgress inputProgress = client.getInputProgress(inputId);
ZencoderInputOutputProgress outputProgress1 = client.getOutputProgress(outputId1);
ZencoderInputOutputProgress outputProgress2 = client.getOutputProgress(outputId2);

Cancel and resubmit an existing job:

client.cancelJob(jobId);
client.resubmitJob(jobId);

Copyright

See LICENSE.txt for details.

com.brightcove.zencoder.api

Zencoder

Версии библиотеки

Версия
2.0.23
2.0.22
2.0.20
2.0.19
2.0.18
2.0.17
2.0.15