Brief
AudioPlayer is a component that implements the HTMLAudioElement interface
-
that extends
HTMLMediaElementinterface.
Remarks
This is a typescript class and not a react native component. Apps- need to create an instance of
AudioPlayerand 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 aAudioPlayer 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

