Wondering what’s next for npm?Check out our public roadmap! »

    webm-cluster-stream

    1.0.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i webm-cluster-stream

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar