jhiesey / videostream

Play html5 video when from a file-like object
MIT License
247 stars 73 forks source link

Playback error: The SourceBuffer is full, and cannot free space to append additional buffers. #35

Open jobevers opened 7 years ago

jobevers commented 7 years ago

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: image

jobevers commented 7 years ago

Eek, I looked at the file more closely. The video has a bitrate of 18496 kb/s, and the audio only 317 kb/s. Is it possible that its running into the same bug as #30, that was fixed with https://github.com/jhiesey/videostream/commit/91bff489147199098ca4c387a66f6a2c17fd6ef7?

PaulBGD commented 5 years ago

I ran into this and opened this issue: https://github.com/feross/mediasource/issues/21 I didn't realize this was an issue on both Chrome and Firefox.

jhiesey commented 5 years ago

I'll take a look at this soon