public class AudioMetadata
extends java.lang.Object
implements java.io.Serializable
Metadata information about an audio stream. An array of
AudioMetadata
objects for the audio streams found in a stored
video is returned by GetSegmentDetection.
Constructor and Description |
---|
AudioMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCodec()
The audio codec used to encode or decode the audio stream.
|
java.lang.Long |
getDurationMillis()
The duration of the audio stream in milliseconds.
|
java.lang.Long |
getNumberOfChannels()
The number of audio channels in the segment.
|
java.lang.Long |
getSampleRate()
The sample rate for the audio stream.
|
int |
hashCode() |
void |
setCodec(java.lang.String codec)
The audio codec used to encode or decode the audio stream.
|
void |
setDurationMillis(java.lang.Long durationMillis)
The duration of the audio stream in milliseconds.
|
void |
setNumberOfChannels(java.lang.Long numberOfChannels)
The number of audio channels in the segment.
|
void |
setSampleRate(java.lang.Long sampleRate)
The sample rate for the audio stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AudioMetadata |
withCodec(java.lang.String codec)
The audio codec used to encode or decode the audio stream.
|
AudioMetadata |
withDurationMillis(java.lang.Long durationMillis)
The duration of the audio stream in milliseconds.
|
AudioMetadata |
withNumberOfChannels(java.lang.Long numberOfChannels)
The number of audio channels in the segment.
|
AudioMetadata |
withSampleRate(java.lang.Long sampleRate)
The sample rate for the audio stream.
|
public java.lang.String getCodec()
The audio codec used to encode or decode the audio stream.
The audio codec used to encode or decode the audio stream.
public void setCodec(java.lang.String codec)
The audio codec used to encode or decode the audio stream.
codec
- The audio codec used to encode or decode the audio stream.
public AudioMetadata withCodec(java.lang.String codec)
The audio codec used to encode or decode the audio stream.
Returns a reference to this object so that method calls can be chained together.
codec
- The audio codec used to encode or decode the audio stream.
public java.lang.Long getDurationMillis()
The duration of the audio stream in milliseconds.
Constraints:
Range: 0 -
The duration of the audio stream in milliseconds.
public void setDurationMillis(java.lang.Long durationMillis)
The duration of the audio stream in milliseconds.
Constraints:
Range: 0 -
durationMillis
- The duration of the audio stream in milliseconds.
public AudioMetadata withDurationMillis(java.lang.Long durationMillis)
The duration of the audio stream in milliseconds.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
durationMillis
- The duration of the audio stream in milliseconds.
public java.lang.Long getSampleRate()
The sample rate for the audio stream.
Constraints:
Range: 0 -
The sample rate for the audio stream.
public void setSampleRate(java.lang.Long sampleRate)
The sample rate for the audio stream.
Constraints:
Range: 0 -
sampleRate
- The sample rate for the audio stream.
public AudioMetadata withSampleRate(java.lang.Long sampleRate)
The sample rate for the audio stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
sampleRate
- The sample rate for the audio stream.
public java.lang.Long getNumberOfChannels()
The number of audio channels in the segment.
Constraints:
Range: 0 -
The number of audio channels in the segment.
public void setNumberOfChannels(java.lang.Long numberOfChannels)
The number of audio channels in the segment.
Constraints:
Range: 0 -
numberOfChannels
- The number of audio channels in the segment.
public AudioMetadata withNumberOfChannels(java.lang.Long numberOfChannels)
The number of audio channels in the segment.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
numberOfChannels
- The number of audio channels in the segment.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.