public interface UiWidgetMedia extends UiWidget, AttributeWriteUrl, AttributeWritePaused, AttributeWriteVolume, AttributeWritePositionInSeconds
atomic widget
that represents media player. For
simple usage see UiWidgetMediaPlayer
.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 |
---|---|
Iterator<Range<Double>> |
getBufferRanges() |
double |
getDurationInSeconds()
This method gets the duration of the
current media in seconds. |
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
setUrl
getUrl
setPaused
isPaused
setVolume
getVolume
setPositionInSeconds
getPositionInSeconds
double getDurationInSeconds()
current media
in seconds. The duration is the
maximum value for the playback position
.Iterator<Range<Double>> getBufferRanges()
Range
s within the media that are available in the buffer.
Typically just a single range starting
at 0.0
ending
before or at the media duration
.
However, in case of peer-to-peer technology the stream may also be available in chunks identified
by multiple ranges. This method is typically used to display the buffered sections in the
timer-bar of the media-player.Copyright © 2001–2016 mmm-Team. All rights reserved.