@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 CHANGED
@@ -293,3 +293,11 @@
293
293
  #### 0.11.0
294
294
 
295
295
  * 支持 ios 调整音量大小
296
+
297
+ #### 0.11.1
298
+
299
+ * 更新 slide 类型定义
300
+
301
+ #### 0.11.2
302
+
303
+ * 修复 ppt 显示区域底部白边问题
package/lib/Slide.d.ts CHANGED
@@ -1,8 +1,24 @@
1
- import { SlideError, ILoaderDelegate, VolumeAdjuster } from "@netless/ppt-player";
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
  * 开始播放音频.