This module manages Vimeo hosted content
https://developer.vimeo.com/api/guides/start
- Source:
Requires
- module:vimeo
Methods
-
init()
-
Initializes class
- Source:
Fires:
- event:assignListeners()
-
assignListeners()
-
Assigns listeners to events used in this class.
- Source:
Listens to Events:
- event:EVENT_MODEL_READY
-
getReturnObj()
-
Returns generic return object
- Source:
Returns:
- Type
- Object
Example
{ "status": "ok", "data": -1 } -
readyCheck()
-
Checks if module is ready
- Source:
Fires:
- event:EVENT_VIMEO_INIT
-
getShowcaseVideos(callback, options, showcaseId)
-
Gets Vimeo showcase videos
Parameters:
Name Type Description callbackfunction Callback function
optionsObject Options when loading showcase
showcaseIdString - Source:
Fires:
- oServices.event:vimeoService()
-
initVideo(videoId, containerId, options)
-
Initializes video
https://developer.vimeo.com/player/sdkParameters:
Name Type Description videoIdString ID of video to load
containerIdString Container ID where the video will be assigned
optionsObject Options when loading video
- Source:
Returns:
- Type
- VimeoInstance
-
getVideoIdFromUrl(link)
-
Parse url and return video ID
Parameters:
Name Type Description linkString URL link of video
- Source:
Returns:
Video ID
- Type
- String
-
onJsonLoaded()
-
Assing private methods
- Source:
Fires:
- event:readyCheck()