MediaPlatformProvider
Summary
Defines a MediaPlatformProvider to interact with media platforms. Use factory to get an instance of the appropriate MediaPlatformProvider.
Constructor
MediaPlatformProvider
Syntax
MediaPlatformProvider
(
-
providerConf
Summary
Parameters:
-
providerConf
ObjectA media platform configuration object, it's structure depend on the provider's type, see extended objects for more information
Methods
getMediaInfo
Syntax
getMediaInfo
(
async
-
mediaId
-
expectedDefintion
-
callback
Summary
Gets information about a media from the platform.
remove
Syntax
remove
(
async
-
mediaIds
-
callback
Summary
Removes a media from the platform.
update
Syntax
update
(
async
-
media
-
data
-
force
-
callback
Summary
Updates a media on the platform.
Depending on the platform and what is supported on it, some media properties might be updated and others not. If media has several resources on the platform, the same update will be performed on all resources.
Parameters:
upload
Syntax
upload
(
async
-
mediaFilePath
-
callback
Summary
Uploads a media to the platform.