@svta/cml-iso-bmff 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +253 -140
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1061 -928
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,10 +33,10 @@ const boxes = readIsoBoxes(buffer, {
|
|
|
33
33
|
|
|
34
34
|
### Writing boxes
|
|
35
35
|
|
|
36
|
-
Boxes can be written to using the `writeIsoBoxes` function. The function takes an array of streamable items and returns
|
|
36
|
+
Boxes can be written to using the `writeIsoBoxes` function. The function takes an array of streamable items and returns an array of `Uint8Array`s. Streamable items include:
|
|
37
37
|
|
|
38
38
|
- Raw box objects (e.g. `{ type: 'ftyp', majorBrand: 'isom', minorVersion: 1, compatibleBrands: ['isom'] }`)
|
|
39
|
-
- ArrayBufferViews like `Uint8Array` and `DataView` as well as the box
|
|
39
|
+
- ArrayBufferViews like `Uint8Array` and `DataView` as well as the box structures returned by the `readIsoBoxes` function (they adhere to the `ArrayBufferView` interface).
|
|
40
40
|
|
|
41
41
|
When providing raw box objects, a configuration object must be provided to specify the writers for those box types.
|
|
42
42
|
|