API Docs for: 2.10.19
Show:

oreesh-video Class

Video element with KnowRe-sh controls

<oreesh-video
    width="640"
    height="480">
    <source src="..." type="...">
    <source src="..." type="...">
    Your browser doesn't support HTML5 video tag.  <!-- fallback message -->
</oreesh-video>

screenfull.js is required.

Note: one-way data flow is used like:

UI event - mutate <video> element - event from <video> element - update UI state

Public attributes are all documented. The events of HTML5 video element is bubbled, so use them.

For the details of public API, see the comments on component source code.

Methods

load

()

Reset the inner video using current media sources. Must be called if media sources are changed.

Attributes

autoHideControls

Boolean

Indicates whether the controls are hidden

Default: false

autoHideControls

Boolean

Indicates the time for which auto hiding of controls is delayed

Default: false

isFullscreen

Boolean

Indicates whether video is in fullscreen mode now

isPlaying

Boolean

Indicates whether user played video

isWating

Boolean

Indicates whether video is not ready

startAt

Number

Indicates the time video starts at (seconds) If not set, video starts normally

Default: 0