Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ISourceBufferConfigBuilder

interface ISourceBufferConfigBuilder
Extends com.amazon.apmf.IStandard Interface to build SourceBufferConfig

Methods

maxVideoResolution()

ISourceBufferConfigBuilder* maxVideoResolution(Resolution maxResolution)
Sets the max video resolution that the source buffer data will contain.

Parameters

maxResolution
Resolution — Required max resolution of the Video

Returns

ISourceBufferConfigBuilder* ISourceBufferConfigBuilder object instance

maxVideoFrameRate()

ISourceBufferConfigBuilder* maxVideoFrameRate(double maxFrameRate)
Sets the max video frame rate that the source buffer data will operate.

Parameters

maxFrameRate
double — Required max video frame rate.

Returns

ISourceBufferConfigBuilder* ISourceBufferConfigBuilder object instance

maxAppendBufferSize()

ISourceBufferConfigBuilder* maxAppendBufferSize(i32 maxSize)
Sets the max append buffer size

Parameters

maxSize
i32 — Required max append buffer size in bytes.

Returns

ISourceBufferConfigBuilder* ISourceBufferConfigBuilder object instance

evictionThreshold()

ISourceBufferConfigBuilder* evictionThreshold(i32 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.

Parameters

evictionThreshold
i32 — Required Eviction threshhold in bytes.

Returns

ISourceBufferConfigBuilder* ISourceBufferConfigBuilder object instance

build()

ISourceBufferConfig* build()
creates the ISourceBufferConfig object instance

Returns

ISourceBufferConfig* ISourceBufferConfig object instance.
Last modified on October 22, 2026