public interface UiWidgetMedia extends UiWidget, AttributeWriteUrl, AttributeWritePaused, AttributeWriteVolume, AttributeWritePositionInSeconds
atomic widget that represents media player. For
simple usage see UiWidgetMediaPlayer.STYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_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, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidatesetUrlgetUrlsetPausedisPausedsetVolumegetVolumesetPositionInSecondsgetPositionInSecondsdouble getDurationInSeconds()
current media in seconds. The duration is the
maximum value for the playback position.Iterator<Range<Double>> getBufferRanges()
Ranges 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.