<layer name="video" url.html5="videoplayer.js" url.flash="videoplayer.swf" 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.html5="videoplayer.js" url.flash="videoplayer.swf" 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.html5="videoplayer.js" url.flash="videoplayer.swf" 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 | Boolean | 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 (HTML5 only) | Type | Default value |
playsinline | Boolean | true |
|
||
Attribute name (HTML5 only) | Type | Default value |
userinteractionworkarounds | 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 |
onneeduserinteraction | Action Event | |
|
||
Attribute name | Type | Default value |
ongotuserinteraction | Action Event | |
|
Attribute name | Type | Initial value |
isvideoready ispaused isseeking iscomplete isautopaused needuserinteraction |
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)