mradionov/h264-bitstream-viewer

Live demo does not load files

sandersdan opened this issue · 4 comments

Seems to be a bad requestIdleCallback() polyfill.

Uncaught (in promise) TypeError: Illegal invocation
    at FileReadStream.readNextChunk (FileReadStream.js:73)

Screen Shot 2021-11-03 at 3 29 17 PM

Hey, it's only supposed to work with .h264 files. Maybe I should make it more clear in the UI, and also handle errors when a wrong file type is uploaded. Here you can find a command which can help extract .h264 from .mp4 https://github.com/mradionov/h264-bitstream-viewer/blob/master/docs/h264.md#h264

Buttery fingers, didn't mean to close

Title updated. Replacing the line with window.requestIdleCallback(() => { allows the app to function with raw H.264.

I've fixed it. Thank you for letting me know!