new VideoPanorama(src [, options] [, radius])
Video Panorama
Parameters:
Name | Type | Argument | Default | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src |
string | Equirectangular video url | |||||||||||||||||||||||||||||||||||||
options |
object |
<optional> |
Option for video settings
Properties
|
||||||||||||||||||||||||||||||||||||
radius |
number |
<optional> |
5000 | The minimum radius for this panoram |
- Source:
Methods
-
dispose()
-
Dispose video panorama
- Source:
-
getVideoElement()
-
Returns the video element
- Source:
-
isVideoMuted()
-
Check if video is muted
- Source:
Returns:
- is video muted or not- Type
- boolean
-
isVideoPaused()
-
Check if video is paused
- Source:
Returns:
- is video paused or not- Type
- boolean
-
load(src, options)
-
Load video panorama
Parameters:
Name Type Description src
string The video url options
object Option object containing videoElement - Source:
Fires:
-
muteVideo()
-
Mute video
- Source:
-
pauseVideo()
-
Pause video
- Source:
-
playVideo()
-
Play video
- Source:
-
resetVideo()
-
Reset video at stating point
- Source:
-
resumeVideoProgress()
-
Resume video
- Source:
-
setVideoCurrentTime(event)
-
Set video currentTime
Parameters:
Name Type Description event
object Event contains percentage. Range from 0.0 to 1.0 - Source:
-
setVideoTexture(video)
-
Set video texture
Parameters:
Name Type Description video
HTMLVideoElement The html5 video element - Source:
Fires:
-
toggleVideo()
-
Toggle video to play or pause
- Source:
-
unmuteVideo()
-
Unmute video
- Source: