call-live-sdk1 0.0.17 → 0.0.19
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/dist/assets/style.BiShD8QG.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/call-live-sdk.es.js +26365 -18018
- package/dist/call-live-sdk.umd.js +1 -1
- package/dist/components/RtcJoomRoom/hooks/useAutoPlayRecovery.d.ts +17 -0
- package/dist/stats-prod.html +1 -1
- package/package.json +1 -1
- package/dist/assets/style.nShai-Ym.css +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RTC 音视频流自动播放恢复 Hook
|
|
3
|
+
* 用于解决浏览器自动播放策略限制问题
|
|
4
|
+
*/
|
|
5
|
+
export declare const useAutoPlayRecovery: () => {
|
|
6
|
+
handleAutoPlayFail: (event: {
|
|
7
|
+
userId: string;
|
|
8
|
+
kind: 'audio' | 'video';
|
|
9
|
+
}) => void;
|
|
10
|
+
handlePlayerEvent: (event: {
|
|
11
|
+
userId: string;
|
|
12
|
+
type: 'audio' | 'video';
|
|
13
|
+
rawEvent: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
}) => void;
|
|
17
|
+
};
|