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_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_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, getChildgetChildCount, getChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidatesetPausedisPausedvoid 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.