TlsProvider
Summary
Defines a TlsProvider to interact with TLS platform.
Constructor
TlsProvider
Syntax
TlsProvider
-
providerConf
Summary
Parameters:
-
providerConf
ObjectTLS configuration
-
nfsPath
StringThe absolute path of the NFS directory shared with TLS
-
mediaDirectoryPath
StringThe path of the directory where to store TLS medias. This is relative to nfsPath
-
accessToken
StringThe TLS API authentication token
-
url
StringThe TLS web service URL
-
[certificate]
String optionalThe absolute path of the full certificate chain if the top level authority is not part of system well known authorities
-
Methods
getMediaInfo
Syntax
getMediaInfo
-
mediaIds
-
expectedDefintion
-
callback
Summary
Gets information about a media hosted by TLS.
Parameters:
-
mediaIds
ArrayThe list of media ids
-
expectedDefintion
StringThe expected media definition. This is not use for TLS provider as TLS doesn't transcode medias
-
callback
FunctionThe function to call when it's done
- Error The error if an error occurred, null otherwise
- Object Information about the media and its resources
remove
Syntax
remove
-
mediaIds
-
callback
Summary
Removes medias from TLS 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 and media custom properties are synchronized with TLS.
Parameters:
-
media
ObjectThe media
-
mediaId
ArrayThe list of media resource ids
-
-
data
ObjectThe datas to update
-
force
Booleantrue to force the update even if title and properties haven'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 TLS platform.
Media is uploaded on a local directory as OpenVeo and TLS share a common directory through NFS.