@besovideo/webrtc-player 0.8.93 → 0.8.94

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
@@ -169,10 +169,10 @@ instance.playerStatus : {
169
169
  Get(): {type: "recordStart" | "recordStop"},
170
170
  // 设置录像状态
171
171
  Set(status: {type: "recordStart" | "recordStop"}): void;
172
- // 添加事件监听
173
- addEventListener(handle: ((status: {type: "recordStart" | "recordStop"}) => void)):void;
172
+ // 添加事件监听, type == "recordStop" recordInfo 才有值
173
+ addEventListener(handle: ((status: {type: "recordStart" | "recordStop", recordInfo?: { data: Blob, cancelAutoDownload: () => void} }) => void)):void;
174
174
  // 移除事件监听
175
- removeEventListener(handle: ((status: {type: "recordStart" | "recordStop"}) => void)):void;
175
+ removeEventListener(handle: ((status: {type: "recordStart" | "recordStop", recordInfo?: {data: Blob, cancelAutoDownload: () => void} }) => void)):void;
176
176
  },
177
177
  rotate: {
178
178
  // 获取旋转状态,顺时针方向