gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.95k stars 330 forks source link

Detect if faststart is enabled for a streamed video file? #395

Open raedle opened 5 months ago

raedle commented 5 months ago

Is there a way to detect if faststart was enabled when using ReadableStream through fetch API's response.body?

The goal would be to read only a few bytes of the fetch API body and then either continue reading or abort depending on whether faststart was enabled (or if the MOOV box was found).