filens-preview 0.1.2 → 0.1.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/all-in-one/filens.js +1 -1
- package/dist/split/filens.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Build the same preview engines as a single JavaScript file or split modules. Bot
|
|
|
4
4
|
include Vue, styles, PDF/iWork workers and the document, image/RAW and STEP WASM
|
|
5
5
|
engines. No conversion server or host Vue installation is needed.
|
|
6
6
|
|
|
7
|
-
Version 0.1.
|
|
7
|
+
Version 0.1.3 uses native HEIC/HEIF decoding first, with a small dedicated WASM
|
|
8
8
|
decoder as fallback. MOV plays through browser codecs; full FFmpeg is excluded.
|
|
9
9
|
Applications can supply an optional `mediaConverter` for unsupported MOV codecs.
|
|
10
10
|
Both builds preserve the same image and video support boundaries.
|
|
@@ -128,7 +128,7 @@ macOS; Windows/Linux browser launching still needs native validation.
|
|
|
128
128
|
另附第三方许可文件。单文件部署更简单,初次下载也更大。
|
|
129
129
|
|
|
130
130
|
`filens preview 文件路径` 会启动本地浏览器预览,由前端完成格式解析与渲染。
|
|
131
|
-
CLI 0.4.1 首次预览时自动安装 filens-preview 0.1.
|
|
131
|
+
CLI 0.4.1 首次预览时自动安装 filens-preview 0.1.3,也可先运行 `filens setup-preview`;
|
|
132
132
|
源码版先运行 `npm run build:agent:preview`。
|
|
133
133
|
独立前端包同时包含单文件和分包产物,完整安装约 31 MB,包含专用 HEIC/HEIF 解码器,不含完整 FFmpeg,不混入 CLI 的
|
|
134
134
|
约 2 MB / Lite 8 MB / Full 30 多 MB 安装体积。源码仅附带分包时约 13.5 MB。图片先尝试原生显示,分包版仅在失败时加载 HEIF 解码器;视频使用浏览器编解码器,不支持的编码可通过可选 mediaConverter 接入转换器。`--no-open --json` 返回本地地址,`--assets` 可切换单文件或分包版,
|
|
@@ -82599,7 +82599,7 @@ class jx {
|
|
|
82599
82599
|
B();
|
|
82600
82600
|
return;
|
|
82601
82601
|
}
|
|
82602
|
-
if (i === "rendered" &&
|
|
82602
|
+
if (i === "rendered" && o.family === "video" && !((e = this.host.querySelector("video")) != null && e.videoWidth)) {
|
|
82603
82603
|
B ? B() : (this.releaseChild(), this.fail(new Error("The browser cannot decode this video codec. Use a compatible browser or an optional media converter."), C));
|
|
82604
82604
|
return;
|
|
82605
82605
|
}
|
package/dist/split/filens.js
CHANGED
|
@@ -111,7 +111,7 @@ class Yt {
|
|
|
111
111
|
p();
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
if (u === "rendered" &&
|
|
114
|
+
if (u === "rendered" && r.family === "video" && !((M = this.host.querySelector("video")) != null && M.videoWidth)) {
|
|
115
115
|
p ? p() : (this.releaseChild(), this.fail(new Error("The browser cannot decode this video codec. Use a compatible browser or an optional media converter."), n));
|
|
116
116
|
return;
|
|
117
117
|
}
|
package/package.json
CHANGED