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
Skip to main content

Brief

AudioPlayer is a component that implements the HTMLAudioElement interface
  • that extends HTMLMediaElement interface.

Remarks

This is a typescript class and not a react native component. Apps
  • need to create an instance of AudioPlayer and use it to start buffering
  • the content without starting playback. It does not render the media controls GUI.
  • Apps are expected to build their own media controls UI and control the playback experience.

Extends

  • MediaPlayer

Constructors

new AudioPlayer()

new AudioPlayer(audioType?, audioUsage?): AudioPlayer

Parameters

audioType?
AudioContentType Type of audio to play.
audioUsage?
AudioUsageType Reason for audio playback.

Returns

AudioPlayer

Brief

Creates a AudioPlayer instance.

Overrides

MediaPlayer.constructor

Properties

controls?

optional controls: boolean Enable or disable the UI for media controls. For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-media-controls.

Inherited from

MediaPlayer.controls

mediaControlHandler

mediaControlHandler: KeplerMediaControlHandler = null

Inherited from

MediaPlayer.mediaControlHandler
Last modified on February 25, 2026