- API
- Player
- Util
- VideoElement
- VideoQuality
- VimeoVideo
A static class that interfaces with the server-side Vimeo API
A util method to modify the endpoint to and return a full API request url
endpoint
string The endpoint you would like to add the full request URL (e.g /videos/video-id)
Returns string
A method for requesting Vimeo videos by video id
videoId
number The Vimeo video id you would like to query (e.g 296928206)
Returns Promise
A method for requesting Vimeo albums by album id
albumId
number The Vimeo album id you would like to query (e.g 5528679)
Returns Promise
A utility method for unpacking and resolving the Vimeo API response from the server
res
Object Vimeo API responseresolve
function (any) Promise resolve methodreject
function (any) Promise reject method
Extends EventEmitter
A class that represents a Vimeo video player
videoId
number A Vimeo video ID (e.g 296928206)args
Object An object that holds the Vimeo video properties (optional, default{}
)
Bind all player event emitters, used internally
Parse and clean a valid Vimeo video ID from string or integer
id
number The Vimeo video ID
Returns number
Get the current player's Vimeo video ID
Returns number
Get the JSON metadata object stored in the Vimeo video description
Returns object The metadata JSON object parsed from the Vimeo video description
Get the Vimeo video description
Returns string The video description
Mute the video
Unmute the video
Load the current video
Set the video quality based on one of the options in the VideoQuality enum
quality
VideoQuality The desired quality setting
Get the current selected video quality
Returns number
Get the current video's width in pixels
Returns number
Get the current video's height in pixels
Returns number
Query wheter the current video is playing
Returns bool
Query wheter a video is paused
Returns bool
Query wheter a video is stopped
Returns bool
Query the video current time
Returns number
Set the video current time
time
number the time to set the current video to
Play the video
Pause the video
Stop the video
Set the video volume
volume
number A number for the new volume you would like to set between 0.0 and 1.0
Load a Vimeo album and create multipule Vimeo Players
albumId
number A Vimeo album ID (e.g 5528679)args
Object An object that holds the Vimeo video properties (optional, default{}
)args.quality
number args.quality - The video quality represented by the VideoQuality enum (optional, defaultVideoQuality.auto
)args.muted
bool A boolean for loading a video and playing it back muted (optional, defaultfalse
)args.autoplay
bool A boolean for loading the video and automatically playing it once it has loaded (optional, defaulttrue
)args.loop
bool A boolean for looping the video playback when it reaches the end (optional, defaulttrue
)
A class for static utility methods
Check wheter WebGL is supported or not
Returns bool
Check wheter the platform is iOS
Returns bool
Check wheter the current device is a mobile device
Returns bool
Extends EventEmitter
Class representing a DOM video element
vimeoVideo
VimeoVideo A VimeoVideo object representing the video resource
Get the
Returns HTMLElement
Play the video
Pause the video
Stop the video
Set the video volume
volume
number A number for the new volume you would like to set between 0.0 and 1.0
Gets the video volume
Returns number
Query wheter a video is playing
Returns bool
Query wheter a video is paused
Returns bool
Query wheter a video is stopped
Returns bool
Set the current video time
time
number The time to set the video
Query the current video time
Returns number
Create the
vimeoVideo
VimeoVideo A VimeoVideo object representing the video resource
Returns HTMLElement
Creates a new DOM element with either Dash, HLS or progressive video playback based on the platform support
vimeoVideo
VimeoVideo A VimeoVideo object representing the video resource
Returns HTMLElement
Adds iOS attributes to be able to play
videoElement
vimeoVideo
HTMLElement A
An enum that represents the video quality coming from Vimeo, auto will default to adaptive an fallback to highest progressive file
Extends EventEmitter
Class representing a Vimeo video resource
videoId
number A Vimeo video ID (e.g 296928206)args
Object An object that holds the Vimeo video properties (optional, default{}
)
An internal method that removes that hits play for autoplay fix event listener, should not be used from outside the class
Load a specific video by providing a Vimeo video ID
videoId
number A Vimeo video ID (e.g 296928206)
Load a specific video based on the Vimeo video ID provided to the constructor, for internal class use
Parses the Vimeo video description and returns a JSON object if it exists Useful for when storing metadata in video description (e.g volumetric video)
Returns Object
Query wheter the current video is loaded
Returns bool
Query wheter the current video is playing
Returns bool
Query wheter a video is paused
Returns bool
Query wheter a video is stopped
Returns bool
Query the video current time
Returns number
Set the video current time
time
number the time to set the current video to
Play the video
Pause the video
Stop the video
Set the video volume
volume
number A number for the new volume you would like to set between 0.0 and 1.0
Muted the video
Unmute the video
Create a three.js video texture
Get the video's width in pixels
Returns number
Get the video's height in pixels
Returns number
Get the current Vimeo video file URL
Returns string
Get the current Vimeo video adaptive stream manifrest file URL
Returns string
Get the current Vimeo video progressive file URL by specific video quality
quality
VideoQuality Specific quality to query the possible video resolutions
Returns string
Query wheter the current video is a livestream
Returns bool
Query wheter the current video is playing back an adaptive stream
Returns bool
Query wheter the current video is playing back an adaptive DASH stream
Returns bool