@netless/slide 1.4.58 → 1.4.59-alpha.1
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 +4 -0
- package/lib/Slide.d.ts +12 -0
- package/lib/Slide.js +14 -14
- package/package.json +2 -3
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,10 @@ 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 pptMediaPermissionRenotifyPending;
|
|
472
|
+
private pendingPptMediaState?;
|
|
469
473
|
private renderingIndex;
|
|
470
474
|
private frameWidth;
|
|
471
475
|
private frameHeight;
|
|
@@ -516,6 +520,14 @@ export declare class Slide extends Slide_base {
|
|
|
516
520
|
static handleLogDownload: () => Promise<void>;
|
|
517
521
|
private urlInterrupter;
|
|
518
522
|
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;
|
|
519
531
|
private userInputHandle;
|
|
520
532
|
private _handleViewClick;
|
|
521
533
|
private handleViewTouchStart;
|