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 IConfigBuilder

interface IConfigBuilder
Extends com.amazon.apmf.IStandard Interface to build IConfig, which will be used to create HTMLMediaElement object.

Methods

playerMode()

IConfigBuilder* playerMode(PlayerMode playerMode)
Sets the Player Mode depending on the use case of W3C Media for HTMLMediaElement URL mode, MediaSourceExtension(MSE) Mode or MediaSampleSourceExtension (MSSE) Mode

Parameters

playerMode
PlayerMode — Required PlayerMode for the W3C Media use case

Returns

IConfigBuilder* IConfigBuilder object instance

audioContentType()

IConfigBuilder* audioContentType(AudioContentType audioContentType)
Sets the audio content type that will be used to configure the audio subsytem.

Parameters

audioContentType
AudioContentType — Required Specifies “what” you are playing. The content type expresses the general category of the content.

Returns

IConfigBuilder* IConfigBuilder object instance

audioUsage()

IConfigBuilder* audioUsage(AudioUsage audioUsage)
Sets the audio usage that will be used to configure the audio subsytem.

Parameters

audioUsage
AudioUsage — Required Specifies “why” you are playing audio, what is this audio used for.

Returns

IConfigBuilder* IConfigBuilder object instance

build()

IConfig* build()
Creates the IConfig object

Returns

IConfig* IConfig object instance
Last modified on October 29, 2026