1.2.5 • Published 7 years ago

vdocipher v1.2.5

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
callbackgetOtpCallbackwhich will be called with otp

vdoCipher.getSignaure(playbackInfo) ⇒ string

get signature for auth video playback

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

ParamTypeDescription
playbackInfoObjectbase64 encoding of a json string with info about the time expiry and media info and other DRM data
playbackInfo.videostring32-char video id
playbackInfo.expiryintegerthe unix timestamp time in seconds
playbackInfo.ipgeorulesstringip/geo ruleset as a json string as defined in https://www.vdocipher.com/blog/2017/01/set-ip-geo-restriction-videos-via-api-vdocipher-drm/
playbackInfo.userstringuser information as a structured json
playbackInfo.extrastringextra information as a json string
playbackInfo.watermarkstringwatermark preset indentifier

VdoCipher~getOtpCallback : function

This callback is used to retrieve the otp

Kind: inner typedef of VdoCipher

ParamTypeDescription
errorErrorShould be null for success, check error.message for detail
responseObjectThe otp json container
response.otpstringthe 64 character otp
1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.0

8 years ago