@netless/slide 0.11.0-beta.2 → 0.11.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 CHANGED
@@ -289,3 +289,11 @@
289
289
  * 修复带特效的视频无法播放的问题
290
290
  * 修复动画引起的视频播放无法同步的问题
291
291
  * 修复触发器无法正确的控制视频播放问题
292
+
293
+ #### 0.11.0
294
+
295
+ * 支持 ios 调整音量大小
296
+
297
+ #### 0.11.1
298
+
299
+ * 更新 slide 类型定义
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
  * 开始播放音频.