@netless/slide 0.11.0 → 0.11.2
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 +8 -0
- package/lib/Slide.d.ts +18 -2
- package/lib/Slide.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/Slide.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import { SlideError,
|
|
1
|
+
import { SlideError, VolumeAdjuster } from "@netless/ppt-player";
|
|
2
2
|
import { IPlugin } from "@netless/plugin-system";
|
|
3
3
|
export { ErrorType } from "@netless/ppt-player";
|
|
4
|
-
export type { ILoaderDelegate } from "@netless/ppt-player";
|
|
5
4
|
export * from "./global";
|
|
5
|
+
export interface ILoaderDelegate {
|
|
6
|
+
/**
|
|
7
|
+
* 加载 json 资源, 需返回 json 文本
|
|
8
|
+
* @param url 原始资源地址
|
|
9
|
+
*/
|
|
10
|
+
loadJson(url: string): Promise<string>;
|
|
11
|
+
/**
|
|
12
|
+
* 加载图片资源, 需返回 Blob 对象
|
|
13
|
+
* @param url 原始资源地址
|
|
14
|
+
*/
|
|
15
|
+
loadImage(url: string): Promise<Blob>;
|
|
16
|
+
/**
|
|
17
|
+
* 媒体文件重定向, mp3 和 mp4 资源会调用这个代理函数, 需返回重定向后的 url
|
|
18
|
+
* @param url 原始资源地址
|
|
19
|
+
*/
|
|
20
|
+
redirectMedia(url: string): string;
|
|
21
|
+
}
|
|
6
22
|
export interface RtcAudio {
|
|
7
23
|
/**
|
|
8
24
|
* 开始播放音频.
|