- From: Juan5212 <notifications@github.com>
- Date: Sat, 09 Nov 2024 01:59:39 -0800
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 9 November 2024 09:59:43 UTC
https://github.com/gpac/mp4box.js/issues/420#issue-2645881451var MP4Box = require('mp4box'); // Or whatever import method you prefer.
var mp4boxfile = MP4Box.createFile();
mp4boxfile.onError = function(e) {};
mp4boxfile.onReady = function(info) {};
mp4boxfile.appendBuffer(data);
mp4boxfile.appendBuffer(data);
mp4boxfile.appendBuffer(data);
...
mp4boxfile.flush();mp4boxfile.onSamples = function (id, user, samples) {
console.log("Received "+samples.length+" samples on track "+id+" for object "+user);
}{
"track_id":4,
"description": "[Box]",
"is_rap":true,
"timescale":1000,
"dts":0,
"cts":0,
"duration":1000,
"size":41,
"data": "[ArrayBuffer]"
}
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1449
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/issues/1449@github.com>
Received on Saturday, 9 November 2024 09:59:43 UTC