pssh-tools
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -0,1 +1,2 @@ | ||
const path = require('path') | ||
const protobuf = require('protobufjs') | ||
@@ -11,3 +12,4 @@ | ||
const decodeWidevineHeader = (data) => { | ||
const root = protobuf.loadSync('./lib/pssh/proto/WidevineCencHeader.proto') | ||
const protoFile = path.join(__dirname, 'proto', 'WidevineCencHeader.proto') | ||
const root = protobuf.loadSync(protoFile) | ||
@@ -14,0 +16,0 @@ const WidevineCencHeader = root.lookupType('proto.WidevineCencHeader') |
@@ -0,6 +1,9 @@ | ||
const path = require('path') | ||
const protobuf = require('protobufjs') | ||
const utils = require('./utils') | ||
const getPsshData = ({ contentId = null, trackType = '', keyIds = [], provider = '', protectionScheme = 'cenc' }) => { | ||
const root = protobuf.loadSync('./lib/pssh/proto/WidevineCencHeader.proto') | ||
const protoFile = path.join(__dirname, 'proto', 'WidevineCencHeader.proto') | ||
const root = protobuf.loadSync(protoFile) | ||
@@ -7,0 +10,0 @@ const WidevineCencHeader = root.lookupType('proto.WidevineCencHeader') |
{ | ||
"name": "pssh-tools", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Tools to generate PSSH Data and PSSH Box", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19505
440