Class: VideoPanorama

PANOLENS. VideoPanorama


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
Name Type Argument Default Description
videoElement HTMLElement <optional>
HTML5 video element contains the video
loop boolean <optional>
true Specify if the video should loop in the end
muted boolean <optional>
false Mute the video or not
autoplay boolean <optional>
false Specify if the video should auto play
playsinline boolean <optional>
true Specify if video should play inline for iOS. If you want it to auto play inline, set both autoplay and muted options to true
crossOrigin string <optional>
"anonymous" Sets the cross-origin attribute for the video, which allows for cross-origin videos in some browsers (Firefox, Chrome). Set to either "anonymous" or "use-credentials".
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: