🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

webm-cluster-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webm-cluster-stream

Transform stream that splits a webm stream into a header buffer and cluster buffers

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

webm-cluster-stream

Transform stream that splits a webm stream into a header buffer and cluster buffers. Useful if you have a webm live stream and wants to make it seekable. See the webm spec for more info

npm install webm-cluster-stream

Usage

var clusters = require('webm-cluster-stream')
var fs = require('fs')

var cl = clusters()

cl.once('data', function (header) {
  // first buffer is header
  console.log('header:', header)
  cl.on('data', function (cluster) {
    // next buffers are "Cluster" objects
    console.log('cluster:', cluster)
  })
})

fs.createReadStream('movie.webm').pipe(cl)

License

MIT

FAQs

Package last updated on 04 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts