|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.teamdev.jxcapture.video.player.MediaInfo
public class MediaInfo
Represents set of various media properties.
Constructor Summary | |
---|---|
MediaInfo()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaInfo()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |