public class MediaStreamInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
audioBitsPerSample
Audio bits per sample
|
private int |
audioChannels
Number of audio channels
|
private int |
audioSampleRate
Audio sample rate (Hz)
|
private byte |
codecName
Codec name
|
private long |
duration
Duration (ms)
|
private byte |
language
Language
|
private int |
streamIndex
Stream index
|
private int |
streamType
Stream type
|
private int |
videoBitRate
Video bitrate (bps)
|
private int |
videoFrameRate
Video frame rate (fps)
|
private int |
videoHeight
Video height (px)
|
private int |
videoRotation
Video rotation
|
private int |
videoWidth
Video width (px)
|
| Constructor and Description |
|---|
MediaStreamInfo()
Default constructor for MediaStreamInfo.
|
MediaStreamInfo(int streamIndex,
int streamType,
byte codecName,
byte language,
int videoFrameRate,
int videoBitRate,
int videoWidth,
int videoHeight,
int videoRotation,
int audioSampleRate,
int audioChannels,
int audioBitsPerSample,
long duration)
Constructs MediaStreamInfo with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAudioBitsPerSample()
Gets the audio bits per sample.
|
int |
getAudioChannels()
Gets the number of audio channels.
|
int |
getAudioSampleRate()
Gets the audio sample rate (Hz).
|
byte |
getCodecName()
Gets the codec name.
|
long |
getDuration()
Gets the duration (ms).
|
byte |
getLanguage()
Gets the language.
|
int |
getStreamIndex()
Gets the stream index.
|
int |
getStreamType()
Gets the stream type.
|
int |
getVideoBitRate()
Gets the video bitrate (bps).
|
int |
getVideoFrameRate()
Gets the video frame rate (fps).
|
int |
getVideoHeight()
Gets the video height (px).
|
int |
getVideoRotation()
Gets the video rotation.
|
int |
getVideoWidth()
Gets the video width (px).
|
void |
setAudioBitsPerSample(int audioBitsPerSample)
Sets the audio bits per sample.
|
void |
setAudioChannels(int audioChannels)
Sets the number of audio channels.
|
void |
setAudioSampleRate(int audioSampleRate)
Sets the audio sample rate (Hz).
|
void |
setCodecName(byte codecName)
Sets the codec name.
|
void |
setDuration(long duration)
Sets the duration (ms).
|
void |
setLanguage(byte language)
Sets the language.
|
void |
setStreamIndex(int streamIndex)
Sets the stream index.
|
void |
setStreamType(int streamType)
Sets the stream type.
|
void |
setVideoBitRate(int videoBitRate)
Sets the video bitrate (bps).
|
void |
setVideoFrameRate(int videoFrameRate)
Sets the video frame rate (fps).
|
void |
setVideoHeight(int videoHeight)
Sets the video height (px).
|
void |
setVideoRotation(int videoRotation)
Sets the video rotation.
|
void |
setVideoWidth(int videoWidth)
Sets the video width (px).
|
private int streamIndex
private int streamType
private byte codecName
private byte language
private int videoFrameRate
private int videoBitRate
private int videoWidth
private int videoHeight
private int videoRotation
private int audioSampleRate
private int audioChannels
private int audioBitsPerSample
private long duration
public MediaStreamInfo()
public MediaStreamInfo(int streamIndex,
int streamType,
byte codecName,
byte language,
int videoFrameRate,
int videoBitRate,
int videoWidth,
int videoHeight,
int videoRotation,
int audioSampleRate,
int audioChannels,
int audioBitsPerSample,
long duration)
streamIndex - Stream indexstreamType - Stream typecodecName - Codec namelanguage - LanguagevideoFrameRate - Video frame rate (fps)videoBitRate - Video bitrate (bps)videoWidth - Video width (px)videoHeight - Video height (px)videoRotation - Video rotationaudioSampleRate - Audio sample rate (Hz)audioChannels - Number of audio channelsaudioBitsPerSample - Audio bits per sampleduration - Duration (ms)public int getStreamIndex()
public void setStreamIndex(int streamIndex)
streamIndex - Stream indexpublic int getStreamType()
public void setStreamType(int streamType)
streamType - Stream typepublic byte getCodecName()
public void setCodecName(byte codecName)
codecName - Codec namepublic byte getLanguage()
public void setLanguage(byte language)
language - Languagepublic int getVideoFrameRate()
public void setVideoFrameRate(int videoFrameRate)
videoFrameRate - Video frame rate (fps)public int getVideoBitRate()
public void setVideoBitRate(int videoBitRate)
videoBitRate - Video bitrate (bps)public int getVideoWidth()
public void setVideoWidth(int videoWidth)
videoWidth - Video width (px)public int getVideoHeight()
public void setVideoHeight(int videoHeight)
videoHeight - Video height (px)public int getVideoRotation()
public void setVideoRotation(int videoRotation)
videoRotation - Video rotationpublic int getAudioSampleRate()
public void setAudioSampleRate(int audioSampleRate)
audioSampleRate - Audio sample rate (Hz)public int getAudioChannels()
public void setAudioChannels(int audioChannels)
audioChannels - Number of audio channelspublic int getAudioBitsPerSample()
public void setAudioBitsPerSample(int audioBitsPerSample)
audioBitsPerSample - Audio bits per samplepublic long getDuration()
public void setDuration(long duration)
duration - Duration (ms)