polotno-node 2.15.14 → 2.15.16
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 +6 -0
- package/dist/assets/{index-C69ifb8A.js → index-B1NWkbV5.js} +34 -34
- package/dist/assets/{jspdf.es.min-B7BbMBrq.js → jspdf.es.min-CBRoYge0.js} +1 -1
- package/dist/assets/{lib-C0YGJINc.js → lib-Cm7bIAAZ.js} +1 -1
- package/dist/index.html +1 -1
- package/instance.js +107 -68
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -251,8 +251,12 @@ By default, when exporting video and **only** when using the default local clien
|
|
|
251
251
|
|
|
252
252
|
- Download all **remote** video elements (`type: 'video'`) and `json.audios` sources into a temporary folder
|
|
253
253
|
- Deduplicate downloads (same URL is downloaded once)
|
|
254
|
+
- Probe downloaded remote videos with `ffprobe`
|
|
255
|
+
- Conditionally normalize incompatible downloaded videos into MP4 with H.264 video, `yuv420p`, and AAC audio for better Chromium render compatibility
|
|
254
256
|
- Rewrite `src` to `file://...` URLs so Chromium loads media from disk
|
|
255
257
|
|
|
258
|
+
For best compatibility, use MP4 with H.264 (`yuv420p`) video and AAC audio.
|
|
259
|
+
|
|
256
260
|
If you want to disable this behavior, set:
|
|
257
261
|
|
|
258
262
|
```js
|
|
@@ -261,6 +265,8 @@ const url = await instance.jsonToVideoDataURL(json, {
|
|
|
261
265
|
});
|
|
262
266
|
```
|
|
263
267
|
|
|
268
|
+
When `skipDownloads` is enabled, `polotno-node` will skip both remote-media downloading and the conditional video preprocessing described above.
|
|
269
|
+
|
|
264
270
|
### `attrs.assetLoadTimeout`
|
|
265
271
|
|
|
266
272
|
You can add `assetLoadTimeout` attribute to `attrs` object. It will be used to set timeout for loading assets. By default it is 30000ms.
|