kevinGodell/mp4frag

Typo in http server example

itsjustbrian opened this issue · 1 comments

In the init-pool route:

app.get('/init-pool.mp4', (req, res) => {
    if (mp4frag.initialization) {
        res.writeHead(200, {'Content-Type': 'video/mp4'});
        res.end(mp4.initialization);
    } else {
        res.sendStatus(503);
    }
});

res.end(mp4.initialization); should be res.end(mp4frag.initialization);

thx. fixed. let me know if anything is unclear about the lib.
72d8520