# Equirectangular video
This adapter is available in the @photo-sphere-viewer/equirectangular-video-adapter (opens new window) package.
const viewer = new PhotoSphereViewer.Viewer({
adapter: PhotoSphereViewer.EquirectangularVideoAdapter,
panorama: {
source: 'path/video.mp4', // also supports webm
},
plugins: [PhotoSphereViewer.VideoPlugin],
});
WARNING
This adapter requires to use the VideoPlugin.
# Example
# Configuration
# autoplay
- type:
boolean
- default:
false
Automatically starts the video on load.
# muted
- type:
boolean
- default:
false
Mute the video by default.
# resolution
See the equirectangular adapter configuration.
# Panorama options
When using this adapter, the panorama
option and the setPanorama()
method accept an object to configure the video.
# source
(required)
- type:
string
Path of the video file. The video must not be larger than 4096 pixels or it won't be displayed on handled devices.