-
- All Implemented Interfaces:
-
java.lang.Cloneable
public class VideoCaptureConfig implements Cloneable
-
-
Method Summary
Modifier and Type Method Description VideoCaptureConfigsetVideoFrameRate(int videoFrameRate)Sets the recording frames per second. intgetVideoFrameRate()Get the recording frames per second. VideoCaptureConfigsetBitRate(int bitRate)Sets the encoding bit rate. booleanhasBitRate()Returns true if has been setting this encoding bit rate. intgetBitRate()Get the encoding bit rate. VideoCaptureConfigsetIFrameInterval(int interval)Sets number of seconds between each key frame in seconds. intgetIFrameInterval()Get number of seconds between each key frame in seconds. VideoCaptureConfigsetAudioCaptureEnable(boolean enable)Enable the audio capture or disable the audio capture. booleangetAudioCaptureEnable()Return true if audio capture is enabled, false if audio capture is disabled. VideoCaptureConfigsetAudioBitRate(int bitRate)Sets the bit rate of the audio stream. intgetAudioBitRate()Get the bit rate of the audio stream. VideoCaptureConfigsetAudioSampleRate(int sampleRate)Sets the sample rate of the audio stream. intgetAudioSampleRate()Get the sample rate of the audio stream. VideoCaptureConfigsetAudioChannelCount(int channelCount)Sets the number of audio channels. intgetAudioChannelCount()Get the number of audio channels. VideoCaptureConfigsetAudioMinBufferSize(int minBufferSize)Sets the audio min buffer size. intgetAudioMinBufferSize()Get the audio min buffer size. -
-
Method Detail
-
setVideoFrameRate
@NonNull() VideoCaptureConfig setVideoFrameRate(int videoFrameRate)
Sets the recording frames per second.
- Parameters:
videoFrameRate- The requested interval in seconds.
-
getVideoFrameRate
int getVideoFrameRate()
Get the recording frames per second.
-
setBitRate
@NonNull() VideoCaptureConfig setBitRate(int bitRate)
Sets the encoding bit rate.
- Parameters:
bitRate- The requested bit rate in bits per second.
-
hasBitRate
boolean hasBitRate()
Returns true if has been setting this encoding bit rate.
-
getBitRate
int getBitRate()
Get the encoding bit rate.
-
setIFrameInterval
@NonNull() VideoCaptureConfig setIFrameInterval(int interval)
Sets number of seconds between each key frame in seconds.
- Parameters:
interval- The requested interval in seconds.
-
getIFrameInterval
int getIFrameInterval()
Get number of seconds between each key frame in seconds.
-
setAudioCaptureEnable
@NonNull() VideoCaptureConfig setAudioCaptureEnable(boolean enable)
Enable the audio capture or disable the audio capture.
- Parameters:
enable- true to turn on the audio capture, false to turn it off..
-
getAudioCaptureEnable
boolean getAudioCaptureEnable()
Return true if audio capture is enabled, false if audio capture is disabled.
-
setAudioBitRate
@NonNull() VideoCaptureConfig setAudioBitRate(int bitRate)
Sets the bit rate of the audio stream.
- Parameters:
bitRate- The requested bit rate in bits/s.
-
getAudioBitRate
int getAudioBitRate()
Get the bit rate of the audio stream.
-
setAudioSampleRate
@NonNull() VideoCaptureConfig setAudioSampleRate(int sampleRate)
Sets the sample rate of the audio stream.
- Parameters:
sampleRate- The requested sample rate in bits/s.
-
getAudioSampleRate
int getAudioSampleRate()
Get the sample rate of the audio stream.
-
setAudioChannelCount
@NonNull() VideoCaptureConfig setAudioChannelCount(int channelCount)
Sets the number of audio channels.
- Parameters:
channelCount- The requested number of audio channels.
-
getAudioChannelCount
int getAudioChannelCount()
Get the number of audio channels.
-
setAudioMinBufferSize
@NonNull() VideoCaptureConfig setAudioMinBufferSize(int minBufferSize)
Sets the audio min buffer size.
- Parameters:
minBufferSize- The requested audio minimum buffer size, in bytes.
-
getAudioMinBufferSize
int getAudioMinBufferSize()
Get the audio min buffer size.
-
-
-
-