Tutorial: audiotrack-from-video

audiotrack-from-video

const { AudioTrack, Source } = require('../')

const src = new Source(
  'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
)

src.open((err) => {
  if(err) console.error(err)
  const audioTrack = AudioTrack.from(src)
  audioTrack.ready(() => {
    console.log(audioTrack)
  })
})