@netless/slide 1.4.59-alpha.1 → 1.4.59-alpha.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 +0 -4
- package/lib/Slide.d.ts +10 -12
- package/lib/Slide.js +14 -14
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## changelog
|
|
6
6
|
|
|
7
|
-
### 1.4.59-alpha.0 (2026-09-11)
|
|
8
|
-
* 新增 `onPptMediaPermissionRequest(callback)` 接口,用于通知当前 PPT 音视频需要用户交互后才能播放
|
|
9
|
-
* 新增 `playPptMedia()` 接口,用于在用户点击事件中恢复当前仍处于播放状态、且本地被浏览器拦截的 PPT 音视频
|
|
10
|
-
|
|
11
7
|
### 1.4.58 (2026-09-07)
|
|
12
8
|
* 修复低版本 WebView 中纯色图形显示为黑块的问题
|
|
13
9
|
* 修复切页或销毁 Stage 后无限循环动画回调仍访问已释放 Pixi 对象导致的异常
|
package/lib/Slide.d.ts
CHANGED
|
@@ -462,14 +462,14 @@ export declare class Slide extends Slide_base {
|
|
|
462
462
|
private isLoading;
|
|
463
463
|
private isReleasing;
|
|
464
464
|
private interactive;
|
|
465
|
+
private canRetryWithoutPlayer;
|
|
465
466
|
private syncCatchUpInputBlocked;
|
|
466
467
|
private anchor;
|
|
467
468
|
private tracker;
|
|
468
469
|
private player?;
|
|
469
|
-
private
|
|
470
|
-
private
|
|
471
|
-
private
|
|
472
|
-
private pendingPptMediaState?;
|
|
470
|
+
private playerGeneration;
|
|
471
|
+
private playerGenerations;
|
|
472
|
+
private playerSwapRenderTimeoutMs;
|
|
473
473
|
private renderingIndex;
|
|
474
474
|
private frameWidth;
|
|
475
475
|
private frameHeight;
|
|
@@ -510,6 +510,8 @@ export declare class Slide extends Slide_base {
|
|
|
510
510
|
private handleSyncQueueCompactRenderComplete;
|
|
511
511
|
private handleSyncQueueCatchUpStateChange;
|
|
512
512
|
private updatePlayerInteractive;
|
|
513
|
+
private flipDebugState;
|
|
514
|
+
private logSlideFlip;
|
|
513
515
|
private observeRenderTask;
|
|
514
516
|
private recoverHandler;
|
|
515
517
|
private reportError;
|
|
@@ -520,14 +522,6 @@ export declare class Slide extends Slide_base {
|
|
|
520
522
|
static handleLogDownload: () => Promise<void>;
|
|
521
523
|
private urlInterrupter;
|
|
522
524
|
private initPlayer;
|
|
523
|
-
private getPptMediaState;
|
|
524
|
-
private getPlayingMediaIds;
|
|
525
|
-
private hasPptMediaPermissionRequest;
|
|
526
|
-
private notifyPptMediaPermissionRequest;
|
|
527
|
-
private handlePptMediaPermissionRequest;
|
|
528
|
-
private handlePptMediaPermissionResolved;
|
|
529
|
-
onPptMediaPermissionRequest(callback: () => void): () => void;
|
|
530
|
-
playPptMedia(): void;
|
|
531
525
|
private userInputHandle;
|
|
532
526
|
private _handleViewClick;
|
|
533
527
|
private handleViewTouchStart;
|
|
@@ -646,6 +640,10 @@ export declare class Slide extends Slide_base {
|
|
|
646
640
|
setResource(taskId: string, url: string): void;
|
|
647
641
|
private flushDebounce;
|
|
648
642
|
setResourceList(taskId: string, urls: string[]): void;
|
|
643
|
+
private commitPlayerSwap;
|
|
644
|
+
private disposeFailedReplacementPlayer;
|
|
645
|
+
private rollbackPlayerSwap;
|
|
646
|
+
private renderPlayerForSwap;
|
|
649
647
|
private _renderSlide;
|
|
650
648
|
private handlePrevSlide;
|
|
651
649
|
private handleNextSlide;
|