public class SimpleEncodingVodJobUrlInput extends SimpleEncodingVodJobInput
Constructor and Description |
---|
SimpleEncodingVodJobUrlInput() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SimpleEncodingVodJobCredentials |
getCredentials()
Credentials to be used for authentication and accessing the file.
|
SimpleEncodingVodJobInputType |
getInputType()
Defines the type of the input file, if no type is set it is assumed that the input file contains at least one video stream and optionally one or multiple audio streams.
|
String |
getLanguage()
The language of the audio track, the subtitles, or closed captions file.
|
String |
getUrl()
Define a URL pointing to the asset that should be encoded.
|
int |
hashCode() |
void |
setCredentials(SimpleEncodingVodJobCredentials credentials)
Credentials to be used for authentication and accessing the file.
|
void |
setInputType(SimpleEncodingVodJobInputType inputType)
Defines the type of the input file, if no type is set it is assumed that the input file contains at least one video stream and optionally one or multiple audio streams.
|
void |
setLanguage(String language)
The language of the audio track, the subtitles, or closed captions file.
|
void |
setUrl(String url)
Define a URL pointing to the asset that should be encoded.
|
String |
toString() |
public String getUrl()
public void setUrl(String url)
url
- Define a URL pointing to the asset that should be encoded. The URL has to point to a file. Currently the following protocols/storages systems are supported: HTTP(S), (S)FTP, S3, GCS, Azure Blob Storage, Akamai NetStorage. Note that most protocols will require `credentials` to access the asset. Check the description below which ones are applicable. See below how to construct the URLs for the individual protocols/storage systems. --- **HTTP** and **HTTPS**: * `http://<host>[:<port>]/path/file.mp4` * `https://<host>[:<port>]/path/file.mp4` The port is defaulted to 80 if it's not provided. If the content is secured by Basic Authentication please provide corresponding credentials. **FTP** and **SFTP**: * `ftp://<host>[:<port>]/path/file.mp4` * `sftp://<host>[:<port>]/path/file.mp4` The port is defaulted to 21 (ftp) or 22 (sftp) if it's not provided. If the content is secured please provide corresponding credentials. **S3**: * `s3://<my-bucket>/path/file.mp4` Authentication can be done via accesskey/secretkey or role-based authentication. Generic S3 is currently NOT supported. **GCS**: * `gcs://<my-bucket>/path/file.mp4` Authentication can be done via accesskey/secretkey or a service account **Azure Blob Storage (ABS)**: * `https://<account>.blob.core.windows.net/<container>/path/file.mp4` It is required to provide the Azure key credentials for authentication. **Akamai NetStorage**: * `https://<host>-nsu.akamaihd.net/<CP-code>/path/file.mp4` It is required to provide username/password credentials for authentication. (required)public SimpleEncodingVodJobCredentials getCredentials()
public void setCredentials(SimpleEncodingVodJobCredentials credentials)
credentials
- Credentials to be used for authentication and accessing the file. Check out the examples on how to define the credentials correctly.public SimpleEncodingVodJobInputType getInputType()
public void setInputType(SimpleEncodingVodJobInputType inputType)
inputType
- Defines the type of the input file, if no type is set it is assumed that the input file contains at least one video stream and optionally one or multiple audio streams. Note that when defining video and audio inputs, you can either - add one single input without inputType, in which case that source file must contain a video stream and (if you want audio) one audio stream, or - add one single input with inputType=VIDEO and (if you want audio) one or more inputs with inputType=AUDIO (each containing one audio stream) Other combinations are not valid.public String getLanguage()
public void setLanguage(String language)
language
- The language of the audio track, the subtitles, or closed captions file. The language code must be compliant with [BCP 47](https://datatracker.ietf.org/doc/html/rfc5646). This property is mandatory if the input provided is of type SUBTITLES or CLOSED_CAPTIONS and recommended for input type AUDIO and an input that does not specify an input type (combined audio and video). If an audio input does not specify the language, it is defaulted to `und` (undefined).public boolean equals(Object o)
equals
in class SimpleEncodingVodJobInput
public int hashCode()
hashCode
in class SimpleEncodingVodJobInput
public String toString()
toString
in class SimpleEncodingVodJobInput
Copyright © 2025. All rights reserved.