<layer name="video" url.flash="videoplayer.swf" url.html5="videoplayer.js" videourl="video.m4v|video.webm" posterurl="videoposter.jpg" align="center" x="0" y="0" pausedonstart="false" loop="false" volume="1.0" playbackrate="1.0" preferredformat="" buffertime="0.1" ignoremetadata="false" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" />
<hotspot name="video" url.flash="videoplayer.swf" url.html5="videoplayer.js" videourl="video.m4v|video.webm" posterurl="videoposter.jpg" ath="0.0" atv="0.0" distorted="true" scale="1.0" rx="0.0" ry="0.0" rz="0.0" pausedonstart="false" loop="false" volume="1.0" playbackrate="1.0" directionalsound="true" range="90.0" rangefalloff="1.0" outofrangevolume="0.0" preferredformat="" buffertime="0.1" ignoremetadata="false" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" />
<plugin name="video" url.flash="videoplayer.swf" url.html5="videoplayer.js" videourl="video.m4v|video.webm" posterurl="videoposter.jpg" pausedonstart="false" loop="false" volume="1.0" playbackrate="1.0" preferredformat="" buffertime="0.1" ignoremetadata="false" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" /> <image hfov="360" vfov="180"> <sphere url="plugin:video" /> </image>
Attribute name | Type | Default value |
videourl | String | |
---|---|---|
|
||
Attribute name (HTML5 only) | Type | Default value |
posterurl | String | |
|
||
Attribute name | Type | Default value |
pausedonstart | Boolean | false |
|
||
Attribute name | Type | Default value |
loop | Boolean | false |
|
||
Attribute name | Type | Default value |
volume | Number | 1.0 |
|
||
Attribute name (HTML5 only) | Type | Default value |
playbackrate | Number | 1.0 |
|
||
Attribute name (Flash only) | Type | Default value |
directionalsound | Boolean | false |
|
||
Attribute name (Flash only) | Type | Default value |
range rangefalloff outofrangevolume |
Number Number Number |
90.0 1.0 0.0 |
|
||
Attribute name (HTML5 only) | Type | Default value |
preferredformat | String | |
|
||
Attribute name (Flash only) | Type | Default value |
buffertime | Number | 0.1 |
|
||
Attribute name (Flash only) | Type | Default value |
ignoremetadata | Boolean | false |
|
Attribute name | Type | Default value |
onvideoready | Action Event | |
---|---|---|
|
||
Attribute name | Type | Default value |
onvideoplay | Action Event | |
|
||
Attribute name | Type | Default value |
onvideopaused | Action Event | |
|
||
Attribute name | Type | Default value |
onvideocomplete | Action Event | |
|
Attribute name | Type | Default value |
isvideoready ispaused isseeking iswaiting iscomplete |
Boolean Boolean Boolean Boolean Boolean |
false false false false false |
---|---|---|
Variables to check dynamically the playback state of the video:
|
||
Attribute name | Type | Default value |
time totaltime |
Number Number |
0.0 0.0 |
Playback time information: | ||
Attribute name | Type | Default value |
videowidth videoheight |
int int |
0 0 |
|
||
Attribute name | Type | Default value |
loadedbytes totalbytes |
int int |
0 0 |
Loading information:
Flash notes - the number of loaded bytes don't correlate directly with the number of loaded seconds when the video is encoded with a variable bitrate. HTML5 notes - in HTML5 it's not possible to determine the real byte sizes. Therefore in HTML5 these values represent the currently buffered data in seconds multiplied by 1048576 (=1024*1024, =1 MB). |
playvideo(url, posterurl*, pausedonstart*, starttime*)
closevideo()
stop()
pause()
play()
togglepause()
seek(time)
chrome://flags/#disable-accelerated-video-decodeand activating the given setting there and restarting Chrome.