@netless/slide 0.10.3 → 0.11.0-beta.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/lib/Slide.d.ts +8 -3
- package/lib/Slide.js +1 -1
- package/package.json +2 -2
package/lib/Slide.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlideError, ILoaderDelegate } from "@netless/ppt-player";
|
|
1
|
+
import { SlideError, ILoaderDelegate, VolumeAdjuster } from "@netless/ppt-player";
|
|
2
2
|
import { IPlugin } from "@netless/plugin-system";
|
|
3
3
|
export { ErrorType } from "@netless/ppt-player";
|
|
4
4
|
export type { ILoaderDelegate } from "@netless/ppt-player";
|
|
@@ -343,6 +343,10 @@ export declare class Slide extends Slide_base {
|
|
|
343
343
|
static startRemoteLog(address: string): Promise<void>;
|
|
344
344
|
static appendLogString(logStr: string): void;
|
|
345
345
|
static usePlugin: (plugin: IPlugin) => void;
|
|
346
|
+
/**
|
|
347
|
+
* 设置全局音量, 对所有 Slide 实例都生效
|
|
348
|
+
*/
|
|
349
|
+
static volumeAdjuster: VolumeAdjuster;
|
|
346
350
|
private iosResetCache;
|
|
347
351
|
private iosNewPlayer?;
|
|
348
352
|
private needClearCacheImage;
|
|
@@ -388,6 +392,7 @@ export declare class Slide extends Slide_base {
|
|
|
388
392
|
private _receiveIncrId;
|
|
389
393
|
private get dispatchIncrId();
|
|
390
394
|
constructor(initConfig: ISlideConfig);
|
|
395
|
+
private _updateVolumeByStaticAdjuster;
|
|
391
396
|
private recoverHandler;
|
|
392
397
|
private reportError;
|
|
393
398
|
initSlideConfig(config: ISlideConfig): ISlideConfig;
|
|
@@ -596,12 +601,12 @@ export declare class Slide extends Slide_base {
|
|
|
596
601
|
*/
|
|
597
602
|
snapshotWithTimingEnd(index: number): Promise<string | null>;
|
|
598
603
|
/**
|
|
599
|
-
*
|
|
604
|
+
* 设置此 Slide 实例全局音量, 非同步操作, 只会修改本地音量,不会触发同步事件
|
|
600
605
|
* @param v 数值范围 0 ~ 1
|
|
601
606
|
*/
|
|
602
607
|
updateGlobalVolume(v: number): void;
|
|
603
608
|
/**
|
|
604
|
-
*
|
|
609
|
+
* 获取此 Slide 实例全局音量
|
|
605
610
|
*/
|
|
606
611
|
getGlobalVolume(): number;
|
|
607
612
|
/**
|