Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 263 Bytes

source-to-buffer.md

File metadata and controls

14 lines (12 loc) · 263 Bytes
const { Source } = require('.')

async function main() {
  const src = new Source(
    'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
  )
  src.open(async () => {
    console.log(await src.toBuffer())
  })
}

main()