@netless/slide 1.4.58 → 1.4.59-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,10 @@
4
4
 
5
5
  ## changelog
6
6
 
7
+ ### 1.4.59-alpha.0 (2026-09-11)
8
+ * 新增 `onPptMediaPermissionRequest(callback)` 接口,用于通知当前 PPT 音视频需要用户交互后才能播放
9
+ * 新增 `playPptMedia()` 接口,用于在用户点击事件中恢复当前仍处于播放状态、且本地被浏览器拦截的 PPT 音视频
10
+
7
11
  ### 1.4.58 (2026-09-07)
8
12
  * 修复低版本 WebView 中纯色图形显示为黑块的问题
9
13
  * 修复切页或销毁 Stage 后无限循环动画回调仍访问已释放 Pixi 对象导致的异常
package/lib/Slide.d.ts CHANGED
@@ -466,6 +466,9 @@ export declare class Slide extends Slide_base {
466
466
  private anchor;
467
467
  private tracker;
468
468
  private player?;
469
+ private pptMediaPermissionCallbacks;
470
+ private pptMediaPermissionNotified;
471
+ private pendingPptMediaState?;
469
472
  private renderingIndex;
470
473
  private frameWidth;
471
474
  private frameHeight;
@@ -516,6 +519,14 @@ export declare class Slide extends Slide_base {
516
519
  static handleLogDownload: () => Promise<void>;
517
520
  private urlInterrupter;
518
521
  private initPlayer;
522
+ private getPptMediaState;
523
+ private getPlayingMediaIds;
524
+ private hasPptMediaPermissionRequest;
525
+ private notifyPptMediaPermissionRequest;
526
+ private handlePptMediaPermissionRequest;
527
+ private handlePptMediaPermissionResolved;
528
+ onPptMediaPermissionRequest(callback: () => void): () => void;
529
+ playPptMedia(): void;
519
530
  private userInputHandle;
520
531
  private _handleViewClick;
521
532
  private handleViewTouchStart;