OptionalanalyzerClass of audio analyzer to visualize audio.
WaveformAnalyzer by default.null by default and should be set manually if needed.OptionalanalyzerAudio analyzer options if needed.
OptionalbuttonCSS class to add to buttonVolume element if panel with volumeSlider is open. By default active.
OptionalmediaCSS selector or reference to the HTML media element taken as the source of media data. Auto created by default.
OptionalmediaStrategy to preload media content. By default metadata.
OptionalmediaMediaState component options if needed.
OptionalmediaMediaTimePointer component options if needed.
OptionalmediaThe type of media data created by default. By default MediaType.AUDIO.
OptionalpositionInitial time position offset in seconds.
OptionalposterURL of poster image for the media source.
OptionalremovePossible cases:
OptionaltemplateHTML template with Media player structure. By default defined by TEMPLATE_WITH_HORIZONTAL_VOLUME_SLIDER.
OptionalvideoCSS class to add to auto created video element. By default poster.
OptionalviewCSS selector or HTML container element to render player content. Auto created by default.
OptionalviewCSS class for player container HTML element. By default media-player-item.
OptionalviewTag of player container HTML element. By default div.
OptionalviewList of CSS selectors to bind view elements. May be redefined if custom template is used for Media player.
Bindings by default:
- poster: '.poster'
- analyzer: '.analyzer'
- timePointer: '.time-pointer'
- timerElapsed: '.timer.elapsed'
- timerRemaining: '.timer.remaining'
- timerDuration: '.timer.duration'
- buttonPlay: '.button-play'
- buttonVolume: '.button-volume'
- volumeSlider: '.volume-slider'
- volumeLevel: '.volume-level'
- volumeValue: '.volume-value'
OptionalvolumeInitial media source volume. Value should be in range of [0 - 1] (it means: 0 - 100%).
Options for the MediaPlayer.