Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pssh-tools

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pssh-tools - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

lib/pssh/utils.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc