quickvo-sdk-js 1.6.49 → 1.6.50
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/index.js +20896 -20769
- package/dist/index.umd.cjs +3 -3
- package/dist/src/QuickVO.d.ts +2 -2
- package/dist/src/base/Base.d.ts +2 -12
- package/dist/src/base/modules/AnimationFrame.d.ts +17 -0
- package/package.json +1 -1
package/dist/src/QuickVO.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ export declare class QuickVO {
|
|
|
10
10
|
rnnoise?: import('./base/Base').PrRnnoise;
|
|
11
11
|
}) => void;
|
|
12
12
|
setCallStrategy: (callStrategy: import('./enums').K_callStrategy, mediaTypes?: import('./enums').K_mediaType[]) => Promise<void>;
|
|
13
|
-
addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
|
|
14
|
-
clearRequestAnimationFrame: (keys?: string[]) => Promise<number[]>;
|
|
15
13
|
addNotify: (notify: {
|
|
16
14
|
sn?: string;
|
|
17
15
|
event: "onJoinRoom" | "onQuitRoom" | "onPublish" | "onBeforeTokenExpire" | "onTokenExpired" | "onDestroyRoom" | "onCDNPlayUrlAdd" | "onRoomUserSpeech" | "onRoomUsers" | "onRoomNetwork" | "onDevicechange" | "onPeerState" | "onRoomState";
|
|
@@ -74,6 +72,8 @@ export declare class QuickVO {
|
|
|
74
72
|
quitRoom: () => Promise<boolean>;
|
|
75
73
|
quitRoomEx: () => Promise<boolean>;
|
|
76
74
|
destroy: () => void;
|
|
75
|
+
addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
|
|
76
|
+
clearRequestAnimationFrame: (keys?: string[]) => Promise<void>;
|
|
77
77
|
getLocalUserTrackReports: (mediaType: import('./enums').K_mediaType) => import('./types').TrackReport;
|
|
78
78
|
getRemoteUserTrackReports: (userId: string, origin: "sfu" | "p2p", direction: "sends" | "recvs", mediaType: import('./enums').K_mediaType) => import('./types').TrackReport | undefined;
|
|
79
79
|
_openP2P: (remoteUserId: string, mediaTypes: import('./enums').K_mediaType[], isRemotePush: boolean) => Promise<void>;
|
package/dist/src/base/Base.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { PrAsyncQueue } from 'pr-async-queue';
|
|
|
11
11
|
import { K_roomState } from '../enums/roomState';
|
|
12
12
|
import { K_mediaType } from '../enums/mediaType';
|
|
13
13
|
import { K_callStrategy } from '../enums';
|
|
14
|
+
import { AnimationFrame } from './modules/AnimationFrame';
|
|
14
15
|
type Report_Log_Type = 'ws_c_timeout' | 'webrtc_c_timeout' | 'join_room_error' | 'publish_error' | 'subscribe_error' | 'close_track_error' | 'heartbeat_e_timeout' | 'heartbeat_i_timeout' | 'quit_room_error';
|
|
15
16
|
interface RnnoiseWorkletInstance {
|
|
16
17
|
createRnnoiseWorkletNode: (audioContext: AudioContext) => Promise<AudioWorkletNode>;
|
|
@@ -27,10 +28,10 @@ export declare class Base {
|
|
|
27
28
|
asyncQueue: PrAsyncQueue;
|
|
28
29
|
traffic: Traffic;
|
|
29
30
|
recorder: StreamRecorder;
|
|
31
|
+
animationFrame: AnimationFrame;
|
|
30
32
|
users: Users;
|
|
31
33
|
cws: CallsWebSocket;
|
|
32
34
|
peer: Peer;
|
|
33
|
-
private _requestAnimationFrameMap;
|
|
34
35
|
constructor();
|
|
35
36
|
/**
|
|
36
37
|
* 使用插件
|
|
@@ -41,17 +42,6 @@ export declare class Base {
|
|
|
41
42
|
setRoomState: (state: K_roomState) => void;
|
|
42
43
|
setPeerState: (state: RTCPeerConnectionState) => void;
|
|
43
44
|
setCallStrategy: (callStrategy: K_callStrategy, mediaTypes?: K_mediaType[]) => Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* add FrameRequestCallback
|
|
46
|
-
* @param key string
|
|
47
|
-
* @param func FrameRequestCallback
|
|
48
|
-
*/
|
|
49
|
-
addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* clear FrameRequestCallback
|
|
52
|
-
* @param keys string[] = []
|
|
53
|
-
*/
|
|
54
|
-
clearRequestAnimationFrame: (keys?: string[]) => Promise<number[]>;
|
|
55
45
|
_checkUserStreamOrigin: ({ p2pAverageQuality, sfuAverageQuality }: {
|
|
56
46
|
p2pAverageQuality: number;
|
|
57
47
|
sfuAverageQuality: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class AnimationFrame {
|
|
2
|
+
private _requestAnimationFrameId?;
|
|
3
|
+
private _requestAnimationFrameItems;
|
|
4
|
+
/**
|
|
5
|
+
* add FrameRequestCallback
|
|
6
|
+
* @param key string
|
|
7
|
+
* @param func FrameRequestCallback
|
|
8
|
+
*/
|
|
9
|
+
addRequestAnimationFrame: (key: string, func: FrameRequestCallback) => Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* clear FrameRequestCallback
|
|
12
|
+
* @param keys string[] = []
|
|
13
|
+
*/
|
|
14
|
+
clearRequestAnimationFrame: (keys?: string[]) => Promise<void>;
|
|
15
|
+
init: () => void;
|
|
16
|
+
stop: () => void;
|
|
17
|
+
}
|