@netless/slide 1.4.59 → 1.4.60-alpha.0

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
@@ -4,6 +4,18 @@
4
4
 
5
5
  ## changelog
6
6
 
7
+ ### 1.4.60-alpha.0 (2026-09-20)
8
+ * 修复部分移动浏览器中 HTML5 音频播放请求卡住后,用户点击恢复仍无法重新发起播放的问题
9
+ * 避免将媒体加载或缓冲过程误判为自动播放权限错误,并忽略旧播放请求的迟到事件
10
+
11
+ ### 1.4.59-alpha.4 (2026-09-17)
12
+ * 增强 PPT 媒体自动播放恢复:为 Howler/HTML5 音频与视频增加播放确认 watchdog,覆盖浏览器静默失败未触发 `playerror` 的场景
13
+ * 修正 Howler `playerror` 在内部状态已变为 playing 但 DOM 仍 paused 时被误过滤的问题
14
+
15
+ ### 1.4.59-alpha.0 (2026-09-11)
16
+ * 新增 `onPptMediaPermissionRequest(callback)` 接口,用于通知当前 PPT 音视频需要用户交互后才能播放
17
+ * 新增 `playPptMedia()` 接口,用于在用户点击事件中恢复当前仍处于播放状态、且本地被浏览器拦截的 PPT 音视频
18
+
7
19
  ### 1.4.58 (2026-09-07)
8
20
  * 修复低版本 WebView 中纯色图形显示为黑块的问题
9
21
  * 修复切页或销毁 Stage 后无限循环动画回调仍访问已释放 Pixi 对象导致的异常
package/lib/Slide.d.ts CHANGED
@@ -471,6 +471,10 @@ export declare class Slide extends Slide_base {
471
471
  private playerGeneration;
472
472
  private playerGenerations;
473
473
  private playerSwapRenderTimeoutMs;
474
+ private pptMediaPermissionCallbacks;
475
+ private pptMediaPermissionNotified;
476
+ private pptMediaPermissionRenotifyPending;
477
+ private pendingPptMediaState?;
474
478
  private renderingIndex;
475
479
  private frameWidth;
476
480
  private frameHeight;
@@ -522,6 +526,14 @@ export declare class Slide extends Slide_base {
522
526
  static handleLogDownload: () => Promise<void>;
523
527
  private urlInterrupter;
524
528
  private initPlayer;
529
+ private getPptMediaState;
530
+ private getPlayingMediaIds;
531
+ private hasPptMediaPermissionRequest;
532
+ private notifyPptMediaPermissionRequest;
533
+ private handlePptMediaPermissionRequest;
534
+ private handlePptMediaPermissionResolved;
535
+ onPptMediaPermissionRequest(callback: () => void): () => void;
536
+ playPptMedia(): void;
525
537
  private userInputHandle;
526
538
  private _handleViewClick;
527
539
  private handleViewTouchStart;