public class MediaInfo
extends java.lang.Object
Constructor and Description |
---|
MediaInfo() |
Modifier and Type | Method and Description |
---|---|
long |
getAudioBitrate()
Audio bitrate in bytes units.
|
Format |
getAudioFormat()
Audio format.
|
long |
getAudioSampleRate()
Audio sample rate.
|
int |
getBitsPerSample()
Bits per sample.
|
int |
getChannels()
Number of audio channels.
|
double |
getDuration()
Duration of media in seconds.
|
VideoInfo |
getVideoInfo()
Video information bean.
|
boolean |
isAudioPresent()
Returns true if audio is present; false otherwise.
|
void |
setAudioBitrate(long audioBitrate)
Set audio bitrate
|
void |
setAudioFormat(Format audioFormat)
Set audio format.
|
void |
setAudioPresent(boolean audioPresent)
Set true if audio is present; false otherwise.
|
void |
setAudioSampleRate(long audioSampleRate)
Set audio sample rate.
|
void |
setBitsPerSample(int bitsPerSample)
Set bits per sample.
|
void |
setChannels(int channels)
Set number of audio channels.
|
void |
setDuration(double duration)
Set duration of media in seconds.
|
void |
setVideoInfo(VideoInfo videoInfo)
Set video information bean
|
public double getDuration()
public void setDuration(double duration)
duration
- duration of media in secondspublic long getAudioBitrate()
public void setAudioBitrate(long audioBitrate)
audioBitrate
- audio bitratepublic long getAudioSampleRate()
public void setAudioSampleRate(long audioSampleRate)
audioSampleRate
- audio sample ratepublic int getChannels()
public void setChannels(int channels)
channels
- number of audio channelspublic int getBitsPerSample()
public void setBitsPerSample(int bitsPerSample)
bitsPerSample
- bits per samplepublic Format getAudioFormat()
public void setAudioFormat(Format audioFormat)
audioFormat
- audio formatpublic VideoInfo getVideoInfo()
public void setVideoInfo(VideoInfo videoInfo)
videoInfo
- video informationpublic boolean isAudioPresent()
public void setAudioPresent(boolean audioPresent)
audioPresent
- true if audio is present; false otherwise.