videostream
videostream copied to clipboard
Playback error: The SourceBuffer is full, and cannot free space to append additional buffers.
Following the example, given in the readme, I tried creating a stream that simply referenced a file on my harddrive:
const exampleFile = {
createReadStream: function (opts) {
// Return a readable stream that provides the bytes
// between offsets "start" and "end" inclusive
console.log('Stream between ' + opts.start + ' and ' + opts.end + '.');
return fs.createReadStream(path.join(process.env.HOME, "Downloads", "dopeman.mp4"), opts)
}
}
When trying to play the video, I get this error: