<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" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" onerror="" />
<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" directionalsound="true" range="90.0" rangefalloff="1.0" outofrangevolume="0.0" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" onerror="" />
<plugin name="video" url.flash="videoplayer.swf" url.html5="videoplayer.js" videourl="video.m4v|video.webm" posterurl="videoposter.jpg" panovideo="true" pausedonstart="false" loop="false" volume="1.0" onvideoready="" onvideoplay="" onvideopaused="" onvideocomplete="" onerror="" /> <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 (HTML5 only) | Type | Default value |
| panovideo use_as_videopano (old Pre-Release name) |
Boolean Boolean |
false false |
|
||
| 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 |
| muted | Boolean | false |
|
||
| 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 (HTML5 only) | Type | Default value |
| autopause autoresume |
Boolean Boolean |
true false |
|
||
| Attribute name (HTML5 only) | Type | Default value |
| html5controls | Boolean | false |
|
||
| Attribute name (HTML5 only) | Type | Default value |
| html5preload | String | "auto" |
|
||
| Attribute name (Flash only) | Type | Default value |
| buffertime | Number | 0.1 |
|
||
| Attribute name (Flash only) | Type | Default value |
| ignoremetadata | Boolean | false |
|
||
| Attribute name (HTML5 only) | Type | Default value |
| playsinline | Boolean | true |
|
||
| Attribute name (HTML5 only) | Type | Default value |
| iphoneworkarounds | Boolean | true |
|
||
| Attribute name (HTML5 only) | Type | Default value |
| touchworkarounds | Boolean | true |
|
||
| 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 |
| onerror | Action Event | |
|
||
| Attribute name | Type | Default value |
| onneedtouch | Action Event | |
|
||
| Attribute name | Type | Default value |
| ongottouch | Action Event | |
|
||
| Attribute name | Type | Initial value |
| isvideoready ispaused isseeking iscomplete isautopaused needtouch |
Boolean Boolean Boolean Boolean Boolean Boolean |
false false false false false false |
|---|---|---|
Variables to check dynamically the playback state of the video:
|
||
| Attribute name | Type | Initial value |
| videoerror | String | |
|
||
| Attribute name | Type | Initial value |
| time totaltime |
Number Number |
0.0 0.0 |
| Playback time information: | ||
| Attribute name | Type | Initial value |
| videowidth videoheight |
int int |
0 0 |
|
||
| Attribute name | Type | Initial 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)
play()
pause()
togglepause()
stop()
seek(time)
chrome://flags/#disable-accelerated-video-decodeand activating the given setting there and restarting Chrome.