limestone/MediaPlayer
Set of Limestone-styled components to support a custom media player.
Members
Section titled “Members ”MediaControls Component
Section titled “MediaControls   Component ”A set of components for controlling media playback and rendering additional components.
This uses ui/Slottableui/Slottable to accept the custom tags, <bottomComponents>
to add components to the bottom of the media controls. Any additional children will be
rendered into the "more" controls area. Showing the additional components is handled by
MediaControls when the user navigates down from the media buttons.
Wrapped with:
ui/Cancelableui/Cancelable.Cancelable
Wrapped with:
limestone/Skinnablelimestone/Skinnable.Skinnable
Properties
Required Property • id
Section titled “Required Property • id”DOM id for the component.
This child component ActionGuide's id is generated from the id.
actionGuideAriaLabel
Section titled “actionGuideAriaLabel”The aria-label for the action guide.
When the media has been loaded first, this aria-label is read after media title. You can use this aria-label to guide the user to find the action guide button for more controls.
actionGuideButtonAriaLabel
Section titled “actionGuideButtonAriaLabel”The aria-label for the action guide button.
This aria-label is read when the action guide button is focused.
actionGuideDisabled
Section titled “actionGuideDisabled”Disables the ActionGuide.
actionGuideLabel
Section titled “actionGuideLabel”The label for the action guide.
bottomComponents
Section titled “bottomComponents”These components are placed below the action guide. Typically, these will be media playlist controls.
jumpBackwardAriaLabel
Section titled “jumpBackwardAriaLabel”The aria-label for the jumpBackward button.
jumpBackwardIcon
Section titled “jumpBackwardIcon”Jump backward limestone/Iconlimestone/Icon.Icon name. Accepts any limestone/Iconlimestone/Icon.Icon component type.
Default: 'jumpbackward'jumpButtonsDisabled
Section titled “jumpButtonsDisabled”Disables state on the media "jump" buttons; the outer pair.
jumpForwardAriaLabel
Section titled “jumpForwardAriaLabel”The aria-label for the jumpForward button.
jumpForwardIcon
Section titled “jumpForwardIcon”Jump forward limestone/Iconlimestone/Icon.Icon name. Accepts any limestone/Iconlimestone/Icon.Icon component type.
Default: 'jumpforward'Called with the reference to the mediaControls node.
mediaDisabled
Section titled “mediaDisabled”Disables the media buttons.
moreComponentsRendered
Section titled “moreComponentsRendered”When true, more components are rendered. This does not indicate the visibility of more components.
moreComponentsSpotlightId
Section titled “moreComponentsSpotlightId”The spotlight ID for the moreComponent container.
Default: 'moreComponents'nextAriaLabel
Section titled “nextAriaLabel”The aria-label for the next button.
nextButtonDisabled
Section titled “nextButtonDisabled”Disables the next button.
nextIcon
Section titled “nextIcon”Next limestone/Iconlimestone/Icon.Icon name. Accepts any limestone/Iconlimestone/Icon.Icon component type.
Default: 'next'noJumpButtons
Section titled “noJumpButtons”Removes the "jump" buttons. The buttons that skip forward or backward in the video.
noNextButton
Section titled “noNextButton”Removes the next button. The button that plays the next video of the playlist.
noPreviousButton
Section titled “noPreviousButton”Removes the previous button. The button that plays the previous video of the playlist.
onActionGuideClick
Section titled “onActionGuideClick”Called when the button in ActionGuide is clicked.
onClose
Section titled “onClose”Called when cancel/back key events are fired.
onJumpBackwardButtonClick
Section titled “onJumpBackwardButtonClick”Called when the user clicks the JumpBackward button
onJumpForwardButtonClick
Section titled “onJumpForwardButtonClick”Called when the user clicks the JumpForward button.
onKeyDownFromMediaButtons
Section titled “onKeyDownFromMediaButtons”Called when the user presses a media control button.
onNextButtonClick
Section titled “onNextButtonClick”Called when the user clicks the next button.
If this function is not set, the button will work as the default jumpForward button. Next button will be the default in 2.0.0.
onPlayButtonClick
Section titled “onPlayButtonClick”Called when the user clicks the Play button.
onPreviousButtonClick
Section titled “onPreviousButtonClick”Called when the user clicks the previous button
If this function is not set, the button will work as the default jumpBackward button. Previous button will be the default in 2.0.0.
paused
Section titled “paused”true when the video is paused.
pauseIcon
Section titled “pauseIcon”A string which is sent to the pause icon of the player controls. This can be
anything that is accepted by limestone/Iconlimestone/Icon.Icon. This will be temporarily replaced by
the limestone/MediaPlayerlimestone/MediaPlayer.MediaControls.playIcon when the
limestone/MediaPlayerlimestone/MediaPlayer.MediaControls.paused boolean is false.
playIcon
Section titled “playIcon”A string which is sent to the play icon of the player controls. This can be
anything that is accepted by limestone/Iconlimestone/Icon.Icon. This will be temporarily replaced by
the limestone/MediaPlayerlimestone/MediaPlayer.MediaControls.pauseIcon when the
limestone/MediaPlayerlimestone/MediaPlayer.MediaControls.paused boolean is true.
playPauseButtonDisabled
Section titled “playPauseButtonDisabled”Disables the media "play"/"pause" button.
previousAriaLabel
Section titled “previousAriaLabel”The aria-label for the previous button.
previousButtonDisabled
Section titled “previousButtonDisabled”Disables the previous button.
previousIcon
Section titled “previousIcon”Previous limestone/Iconlimestone/Icon.Icon name. Accepts any limestone/Iconlimestone/Icon.Icon component type.
Default: 'previous'spotlightDisabled
Section titled “spotlightDisabled”true controls are disabled from Spotlight.
spotlightId
Section titled “spotlightId”The spotlight ID for the media controls container.
Default: 'mediaControls'visible
Section titled “visible”The visibility of the component. When false, the component will be hidden.
MediaSlider Component
Section titled “MediaSlider   Component ”A customized slider suitable for use within media player components such as limestone/VideoPlayerlimestone/VideoPlayer.VideoPlayer.
Extends:
limestone/Sliderlimestone/Slider.Slider
Properties
forcePressed
Section titled “forcePressed”When true, the knob will expand. Note that Slider is a controlled
component. Changing the value would only affect pressed visual and
not the state.
preview
Section titled “preview”Allow moving the knob via pointer or 5-way without emitting onChange events
previewProportion
Section titled “previewProportion”The position of the knob when in preview mode
visible
Section titled “visible”The visibility of the component. When false, the component will be hidden.
Times Component
Section titled “Times   Component ”Limestone-styled formatted time component.
Properties
Required Property • formatter
Section titled “Required Property • formatter”An instance of a Duration Formatter from i18n.
Must have a format() method that returns a string.
current
Section titled “current”The current time in seconds of the video source.
Default: 0includeHour
Section titled “includeHour”Checks if current time and total time should include the hour.
Default: falsenoCurrentTime
Section titled “noCurrentTime”Removes the current time.
noTotalTime
Section titled “noTotalTime”Removes the total time.
The total time (duration) in seconds of the loaded video source.
Default: 0secondsToTime Function
Section titled “secondsToTime   Function ”3 Params
- seconds Number | String
A duration of time represented in seconds
- durfmt DurationFmt
An instance of a
ilib.DurationFmtobject from iLib configured to display time
- config Object
Additional configuration object that includes
includeHour
Returns
- String
Formatted duration string