public class CaptionSource extends Object implements Serializable
A source file for the input sidecar captions used during the transcoding process.
Constructor and Description |
---|
CaptionSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKey()
The name of the sidecar caption file that you want Elastic Transcoder
to include in the output file.
|
String |
getLabel()
The label of the caption shown in the player when choosing a language.
|
String |
getLanguage()
A string that specifies the language of the caption.
|
String |
getTimeOffset()
For clip generation or captions that do not start at the same time as
the associated video file, the
TimeOffset tells Elastic
Transcoder how much of the video to encode before including captions. |
int |
hashCode() |
void |
setKey(String key)
The name of the sidecar caption file that you want Elastic Transcoder
to include in the output file.
|
void |
setLabel(String label)
The label of the caption shown in the player when choosing a language.
|
void |
setLanguage(String language)
A string that specifies the language of the caption.
|
void |
setTimeOffset(String timeOffset)
For clip generation or captions that do not start at the same time as
the associated video file, the
TimeOffset tells Elastic
Transcoder how much of the video to encode before including captions. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CaptionSource |
withKey(String key)
The name of the sidecar caption file that you want Elastic Transcoder
to include in the output file.
|
CaptionSource |
withLabel(String label)
The label of the caption shown in the player when choosing a language.
|
CaptionSource |
withLanguage(String language)
A string that specifies the language of the caption.
|
CaptionSource |
withTimeOffset(String timeOffset)
For clip generation or captions that do not start at the same time as
the associated video file, the
TimeOffset tells Elastic
Transcoder how much of the video to encode before including captions. |
public String getKey()
Constraints:
Length: 1 - 255
public void setKey(String key)
Constraints:
Length: 1 - 255
key
- The name of the sidecar caption file that you want Elastic Transcoder
to include in the output file.public CaptionSource withKey(String key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
key
- The name of the sidecar caption file that you want Elastic Transcoder
to include in the output file.public String getLanguage()
2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
Constraints:
Length: 1 - 255
2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
public void setLanguage(String language)
2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
Constraints:
Length: 1 - 255
language
- A string that specifies the language of the caption. Specify this as
one of: 2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
public CaptionSource withLanguage(String language)
2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
language
- A string that specifies the language of the caption. Specify this as
one of: 2-character ISO 639-1 code
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
public String getTimeOffset()
TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
Constraints:
Pattern: (^[+-]?\d{1,5}(\.\d{0,3})?$)|(^[+-]?([0-1]?[0-9]:|2[0-3]:)?([0-5]?[0-9]:)?[0-5]?[0-9](\.\d{0,3})?$)
TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
public void setTimeOffset(String timeOffset)
TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
Constraints:
Pattern: (^[+-]?\d{1,5}(\.\d{0,3})?$)|(^[+-]?([0-1]?[0-9]:|2[0-3]:)?([0-5]?[0-9]:)?[0-5]?[0-9](\.\d{0,3})?$)
timeOffset
- For clip generation or captions that do not start at the same time as
the associated video file, the TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
public CaptionSource withTimeOffset(String timeOffset)
TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^[+-]?\d{1,5}(\.\d{0,3})?$)|(^[+-]?([0-1]?[0-9]:|2[0-3]:)?([0-5]?[0-9]:)?[0-5]?[0-9](\.\d{0,3})?$)
timeOffset
- For clip generation or captions that do not start at the same time as
the associated video file, the TimeOffset
tells Elastic
Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
public String getLabel()
Constraints:
Length: 1 - 40
public void setLabel(String label)
Constraints:
Length: 1 - 40
label
- The label of the caption shown in the player when choosing a language.
We recommend that you put the caption language name here, in the
language of the captions.public CaptionSource withLabel(String label)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 40
label
- The label of the caption shown in the player when choosing a language.
We recommend that you put the caption language name here, in the
language of the captions.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.