@video-lab/player-core 4.1.3 → 4.1.4
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ pnpm --filter @video-lab/player-core test
|
|
|
121
121
|
|
|
122
122
|
通过 `pageFullscreen` 传入宿主布局适配器(`setActive(active)` / `dispose()`),句柄 `setPageFullscreen(active)` 等待布局确认。实际状态事件为 `pagefullscreenchange`;React 使用 `onPageFullscreenChange`,Vue 使用 `@page-fullscreen-change`。
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
网页全屏的组件接入示例见当前版本 React/Vue 接入包随包交付的 README 与接入 Skill。iframe 需要新版宿主与 iframe 协商支持;未启用时新入口不可用。浏览器原生全屏接口保持独立。
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
### 统一恢复(契约 v2)
|
|
@@ -130,6 +130,6 @@ pnpm --filter @video-lab/player-core test
|
|
|
130
130
|
|
|
131
131
|
宿主 UI 读取 `playablechange` 的 `playable`、`recoverable`、`action`。`error` 只提供诊断;预算耗尽才给出 `action: 'retry'`,宿主无需按错误原因拼接重试状态。组合层可通过构造配置关闭默认 Error/Loading 覆盖层,事件仍保留。静态 iframe URL 没有宿主命令通道,内部按钮仍走同一调度。
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
旧恢复 API 的迁移背景见维护仓库的 ADR-099;当前调用以本包导出类型和上述行为为准。
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
业务宿主请选择 React/Vue 接入包,按其随包交付的 README 与接入 Skill 选择模式并查找功能配方。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@video-lab/player-core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"xgplayer": "3.0.26",
|
|
34
34
|
"hls.js": "1.6.19",
|
|
35
35
|
"xgplayer-flv.js": "3.0.26",
|
|
36
|
-
"@video-lab/protocol": "4.1.
|
|
36
|
+
"@video-lab/protocol": "4.1.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"jsdom": "^24.0.0",
|