Interface ISourceBufferConfigBuilder
interface ISourceBufferConfigBuilder
Extends com.amazon.apmf.IStandard
Interface to build SourceBufferConfig
Methods
maxVideoResolution()
Sets the max video resolution that the source buffer data will contain.ISourceBufferConfigBuilder*maxVideoResolution(ResolutionmaxResolution)
Parameters
maxResolution
Resolution — Required
max resolution of the Video
Returns
ISourceBufferConfigBuilder*
ISourceBufferConfigBuilder object instance
maxVideoFrameRate()
Sets the max video frame rate that the source buffer data will operate.ISourceBufferConfigBuilder*maxVideoFrameRate(doublemaxFrameRate)
Parameters
maxFrameRate
double — Required
max video frame rate.
Returns
ISourceBufferConfigBuilder*
ISourceBufferConfigBuilder object instance
maxAppendBufferSize()
Sets the max append buffer sizeISourceBufferConfigBuilder*maxAppendBufferSize(i32maxSize)
Parameters
maxSize
i32 — Required
max append buffer size in bytes.
Returns
ISourceBufferConfigBuilder*
ISourceBufferConfigBuilder object instance
evictionThreshold()
Sets the frames eviction threshold memory size. When the source buffer exceeds this memory, it will auto release oldest timestamped coded frames from track buffer.ISourceBufferConfigBuilder*evictionThreshold(i32evictionThreshold)
Parameters
evictionThreshold
i32 — Required
Eviction threshhold in bytes.
Returns
ISourceBufferConfigBuilder*
ISourceBufferConfigBuilder object instance
build()
creates the ISourceBufferConfig object instanceISourceBufferConfig*build()
Returns
ISourceBufferConfig*
ISourceBufferConfig object instance.

