README
VdoCipher
VdoCipher API Nodejs module for vdocipher API to obtain token for authenticated playback
Kind: global class
new VdoCipher(key)
configures the API instance
Param | Type | Description |
---|---|---|
key | string |
Your API Secret key from dashboard |
vdoCipher.getOtp(videoId, options, callback)
obtain the OTP
Kind: instance method of VdoCipher
Param | Type | Description |
---|---|---|
videoId | string |
alphanumeric id of your vdocipher video |
options | Object |
extra options such as forcedBitrate and watermark |
callback | function |
A function which will be called with response |
string
vdoCipher.getSignaure(playbackInfo) ⇒ get signature for auth video playback
Kind: instance method of VdoCipher
Returns: string
- signature created using the secret key
Param | Type | Description |
---|---|---|
playbackInfo | string |
base64 encoding of a json string with info about the time expiry and media info and other DRM data |