Module: managers/vimeo-manager

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
callback function

Callback function

options Object

Options when loading showcase

showcaseId String
Source:
Fires:
  • oServices.event:vimeoService()

initVideo(videoId, containerId, options)

Parameters:
Name Type Description
videoId String

ID of video to load

containerId String

Container ID where the video will be assigned

options Object

Options when loading video

Source:
Returns:
Type
VimeoInstance

getVideoIdFromUrl(link)

Parse url and return video ID

Parameters:
Name Type Description
link String

URL link of video

Source:
Returns:

Video ID

Type
String

onJsonLoaded()

Assing private methods

Source:
Fires:
  • event:readyCheck()