VimeoProvider
Summary
Defines a VimeoProvider class to interact with vimeo platform.
Constructor
Methods
getMediaInfo
Syntax
getMediaInfo
-
mediaId
-
expectedDefintion
-
callback
Summary
Gets information about a media hosted by Vimeo.
Media is considered available if the expected media definition has been transcoded by the media platform.
remove
Syntax
remove
-
mediaIds
-
callback
Summary
Removes a media from the Vimeo platform.
update
Syntax
update
-
media
-
data
-
force
-
callback
Summary
Updates a media resources on the platform.
If media has several resources on the platform, the same update will be performed for all resources. Actually only the media title is synchronized with Vimeo.
Parameters:
-
media
ObjectThe media
-
mediaId
ArrayThe list of media resource ids
-
-
data
ObjectThe datas to update
-
[title]
String optionalThe media title. Be careful only the first 128 characters will be used. Also HTML tags will be removed
-
-
force
Booleantrue to force the update even if title hasn't changed, false otherwise
-
callback
FunctionThe function to call when it's done
- Error The error if an error occurred, null otherwise
upload
Syntax
upload
-
mediaFilePath
-
callback
Summary
Uploads a media to the Vimeo platform.