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.
OptionalautoThe number of seconds after which the analyzer is hidden during playback. By default, it is automatically set to 1 second for video only.
OptionalautoThe number of seconds after which the controls are hidden during playback. By default, it is automatically set to 1 second for video only.
OptionalbuttonCSS class to add to buttonFullscreen when the element is not in the full screen mode. By default fullscreen-off.
OptionalbuttonCSS class to add to buttonFullscreen when the element is in the full screen mode. By default fullscreen-on.
OptionalbuttonCSS class to add to buttonVolume element if panel with volumeSlider is open. By default active.
OptionaldelayThe delay in seconds to display auto-hidden controls and the analyzer after the user taps the poster. By default, it is automatically set to 1 second for video only.
OptionalenableForce the Fullscreen button to appear.
OptionaleventsHash array of Media player events to register callbacks.
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.
OptionalposterCSS class to add to poster element. Can be specified as a list of class names or as a string containing class names separated by spaces.
By default for video: frame-aspect-ratio-16x9 and for audio frame-aspect-ratio-4x3.
OptionalposterHint for poster image.
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. Can be specified as a list of class names or as a string containing class names separated by spaces.
By default poster.
OptionalviewCSS selector or HTML container element to render player content. Auto created by default.
OptionalviewCSS class for player container HTML element. Can be specified as a list of class names or as a string containing class names separated by spaces.
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'
- controls: '.controls'
- 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.