Interface IConfigBuilder
interface IConfigBuilder
Extends com.amazon.apmf.IStandard
Interface to build IConfig, which will be used to create
HTMLMediaElement object.
Methods
playerMode()
Sets the Player Mode depending on the use case of W3C Media for HTMLMediaElement URL mode, MediaSourceExtension(MSE) Mode or MediaSampleSourceExtension (MSSE) ModeIConfigBuilder*playerMode(PlayerModeplayerMode)
Parameters
playerMode
PlayerMode — Required
PlayerMode for the W3C Media use case
Returns
IConfigBuilder*
IConfigBuilder object instance
audioContentType()
Sets the audio content type that will be used to configure the audio subsytem.IConfigBuilder*audioContentType(AudioContentTypeaudioContentType)
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()
Sets the audio usage that will be used to configure the audio subsytem.IConfigBuilder*audioUsage(AudioUsageaudioUsage)
Parameters
audioUsage
AudioUsage — Required
Specifies “why” you are playing audio,
what is this audio used for.
Returns
IConfigBuilder*
IConfigBuilder object instance
build()
Creates the IConfig objectIConfig*build()
Returns
IConfig*
IConfig object instance

