@netless/slide 1.4.59-alpha.4 → 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,10 @@
4
4
 
5
5
  ## changelog
6
6
 
7
+ ### 1.4.60-alpha.0 (2026-09-20)
8
+ * 修复部分移动浏览器中 HTML5 音频播放请求卡住后,用户点击恢复仍无法重新发起播放的问题
9
+ * 避免将媒体加载或缓冲过程误判为自动播放权限错误,并忽略旧播放请求的迟到事件
10
+
7
11
  ### 1.4.59-alpha.4 (2026-09-17)
8
12
  * 增强 PPT 媒体自动播放恢复:为 Howler/HTML5 音频与视频增加播放确认 watchdog,覆盖浏览器静默失败未触发 `playerror` 的场景
9
13
  * 修正 Howler `playerror` 在内部状态已变为 playing 但 DOM 仍 paused 时被误过滤的问题
@@ -0,0 +1,10 @@
1
+ export declare type ContextReleasePlatform = {
2
+ isIOS(): boolean;
3
+ isAndroid(): boolean;
4
+ };
5
+ /**
6
+ * Wait for the browser to finish releasing a destroyed WebGL context before
7
+ * creating a replacement player. Uses rAF when available, but always settles
8
+ * within a bounded timeout so hidden/background WebViews cannot hang release.
9
+ */
10
+ export declare function waitForPlayerContextRelease(platform: ContextReleasePlatform): Promise<void>;
package/lib/Slide.d.ts CHANGED
@@ -446,6 +446,7 @@ export declare class Slide extends Slide_base {
446
446
  static __stageCountLimit: number;
447
447
  static setStageCountLimit(limit: number): void;
448
448
  private iosResetCache;
449
+ private iosResetPending;
449
450
  private iosNewPlayer?;
450
451
  private version?;
451
452
  private __slideState;
@@ -467,13 +468,13 @@ export declare class Slide extends Slide_base {
467
468
  private anchor;
468
469
  private tracker;
469
470
  private player?;
471
+ private playerGeneration;
472
+ private playerGenerations;
473
+ private playerSwapRenderTimeoutMs;
470
474
  private pptMediaPermissionCallbacks;
471
475
  private pptMediaPermissionNotified;
472
476
  private pptMediaPermissionRenotifyPending;
473
477
  private pendingPptMediaState?;
474
- private playerGeneration;
475
- private playerGenerations;
476
- private playerSwapRenderTimeoutMs;
477
478
  private renderingIndex;
478
479
  private frameWidth;
479
480
  private frameHeight;
@@ -514,8 +515,7 @@ export declare class Slide extends Slide_base {
514
515
  private handleSyncQueueCompactRenderComplete;
515
516
  private handleSyncQueueCatchUpStateChange;
516
517
  private updatePlayerInteractive;
517
- private flipDebugState;
518
- private logSlideFlip;
518
+ private hideResetSnapshot;
519
519
  private observeRenderTask;
520
520
  private recoverHandler;
521
521
  private reportError;