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 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.