public interface UiWidgetMediaPlayer extends UiWidgetComposite<UiWidget>, AttributeWritePaused, UiWidgetNative
composite widget
that represents a
media-player. It can both play audio or video medias and has controls for the end-user (volume, time-bar,
fullscreen, etc.).STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
Modifier and Type | Method and Description |
---|---|
void |
setMediaAudio(AudioDescriptor descriptor)
This method loads the audio track identified by the given
AudioDescriptor into this media-player. |
void |
setMediaVideo(VideoDescriptor descriptor)
This method loads the video stream identified by the given
VideoDescriptor into this
media-player. |
void |
setPreviousNextHandler(UiHandlerActionPreviousNext handler)
This method makes the previous and next buttons visible and connects them with the
given
handler . |
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
validate
setPaused
isPaused
void setPreviousNextHandler(UiHandlerActionPreviousNext handler)
handler
.handler
- is the UiHandlerActionPreviousNext
.void setMediaAudio(AudioDescriptor descriptor)
AudioDescriptor
into this media-player.
If the media-player is currently playing )(not paused
), the new media will
automatically be played. Use AttributeWritePaused.setPaused(boolean)
before to avoid this.descriptor
- is the AudioDescriptor
identifying the given track.void setMediaVideo(VideoDescriptor descriptor)
VideoDescriptor
into this
media-player. If the media-player is currently playing )(not paused
), the new media
will automatically be played. Use AttributeWritePaused.setPaused(boolean)
before to avoid this.descriptor
- is the VideoDescriptor
identifying the video stream.Copyright © 2001–2016 mmm-Team. All rights reserved.