1.2.0 • Published 7 years ago

node-vdocipher v1.2.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

VdoCipher

VdoCipher API Nodejs module for vdocipher API to obtain token for authenticated playback

Kind: global class

new VdoCipher(key)

configures the API instance

ParamTypeDescription
keystringYour API Secret key from dashboard

vdoCipher.getOtp(videoId, options, callback)

obtain the OTP

Kind: instance method of VdoCipher

ParamTypeDescription
videoIdstringalphanumeric id of your vdocipher video
optionsObjectextra options such as forcedBitrate and watermark
callbackfunctionA function which will be called with response

vdoCipher.getSignaure(playbackInfo) ⇒ string

get signature for auth video playback

Kind: instance method of VdoCipher
Returns: string - signature created using the secret key

ParamTypeDescription
playbackInfostringbase64 encoding of a json string with info about the time expiry and media info and other DRM data