<html5videoview>

JavaScript: lz.html5videoview
extends <html5mediaview> » <view> » <node> » lz.Eventable »

<html5videoview> allows applications to play video from HTTP servers.

<canvas>
            <html5videoview src="http://www.archive.org/download/SoundieF/SoundieF_512kb.mp4" autoplay="true" width="320" height="240"/>
            </canvas>

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
poster string String   read/write
   

Methods

enterFullscreen()
html5videoview.enterFullscreen();
Enters fullscreen mode.

exitFullscreen()
html5videoview.exitFullscreen();
Exits fullscreen mode.

getDisplayingFullscreen()
html5videoview.getDisplayingFullscreen();
Is video element displaying fullscreen mode?

getSupportsFullscreen()
html5videoview.getSupportsFullscreen();
Does video element support fullscreen mode?

getVideoHeight()
html5videoview.getVideoHeight();
The native height of the video in CSS pixels. (read-only)

getVideoWidth()
html5videoview.getVideoWidth();
The native width of the video in CSS pixels. (read-only)

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onbeginfullscreen Sent when the video begins displaying as fullscreen
onendfullscreen Sent when the video stops displaying as fullscreen

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy