quickvo-sdk-js 1.0.4 → 1.0.6
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 +22401 -21946
- package/dist/index.umd.cjs +11 -11
- package/dist/protos/compiled.d.ts +5009 -5009
- package/dist/room/RoomBase.d.ts +2 -2
- package/dist/room/RoomCalls.d.ts +5 -12
- package/dist/room/RoomPeer.d.ts +4 -0
- package/dist/types.d.ts +0 -1
- package/package.json +49 -49
package/dist/room/RoomBase.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { K_roomState } from '../enums/roomState';
|
|
|
2
2
|
import { QuickOptions, Report_Log_Type, RoomOptions, RoomUser, UserTrack } from '../types';
|
|
3
3
|
import { CallsWebSocket, CallsWebSocketOptions } from './CallsWebSocket';
|
|
4
4
|
import { K_mediaType } from '../enums/mediaType';
|
|
5
|
-
import { PrTaskQueue } from 'pr-task-queue';
|
|
6
5
|
import { NetworkQualityTester } from './NetworkQualityTester';
|
|
7
6
|
import { StreamRecorder } from './StreamRecorder';
|
|
7
|
+
import { PrAsyncQueue } from 'pr-async-queue';
|
|
8
8
|
type Options = QuickOptions & RoomOptions & CallsWebSocketOptions & {
|
|
9
9
|
earlyId?: string;
|
|
10
10
|
};
|
|
@@ -14,7 +14,7 @@ export declare class RoomBase {
|
|
|
14
14
|
prohibitNotify: boolean;
|
|
15
15
|
isEarly: boolean;
|
|
16
16
|
isInRoom: boolean;
|
|
17
|
-
|
|
17
|
+
asyncQueue: PrAsyncQueue;
|
|
18
18
|
roomState: K_roomState;
|
|
19
19
|
createAt: number;
|
|
20
20
|
cwsIns: CallsWebSocket;
|
package/dist/room/RoomCalls.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
38
38
|
* @example quickvo.joinRoom({ userId: '', roomId: '', sdkToken: '', callType: '1' , newPublishAutoSubscribe: true })
|
|
39
39
|
* @returns Promise<boolean>
|
|
40
40
|
*/
|
|
41
|
-
joinRoom: (roomOptions: RoomOptions) => Promise<
|
|
41
|
+
joinRoom: (roomOptions: RoomOptions) => Promise<unknown>;
|
|
42
42
|
/**
|
|
43
43
|
* quitRoom
|
|
44
44
|
* @example quickvo.quitRoom()
|
|
@@ -67,14 +67,14 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
67
67
|
* @example quickvo.publish(['microphoneCamera_audio', 'microphoneCamera_video'], 3)
|
|
68
68
|
* @returns Promise<RoomUser>
|
|
69
69
|
*/
|
|
70
|
-
publish: (mediaTypes: K_mediaType[]) => Promise<
|
|
70
|
+
publish: (mediaTypes: K_mediaType[]) => Promise<unknown>;
|
|
71
71
|
/**
|
|
72
72
|
* stopPublish
|
|
73
73
|
* @param trackNames string[] = []
|
|
74
74
|
* @example quickvo.stopPublish(['microphoneCamera_audio'])
|
|
75
75
|
* @returns Promise<RoomUser>
|
|
76
76
|
*/
|
|
77
|
-
stopPublish: (mediaTypes?: K_mediaType[]) => Promise<
|
|
77
|
+
stopPublish: (mediaTypes?: K_mediaType[]) => Promise<unknown>;
|
|
78
78
|
/**
|
|
79
79
|
* subscribe
|
|
80
80
|
* @param trackNames strig[]
|
|
@@ -82,14 +82,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
82
82
|
* @example quickvo.subscribe(['trackName1','trackName2'])
|
|
83
83
|
* @returns Promise<RoomUser[]>
|
|
84
84
|
*/
|
|
85
|
-
subscribe: (trackNames?: string[], count?: number) => Promise<
|
|
86
|
-
users: RoomUser[];
|
|
87
|
-
detail: {
|
|
88
|
-
target: string[];
|
|
89
|
-
success: string[];
|
|
90
|
-
fail: string[];
|
|
91
|
-
};
|
|
92
|
-
}>;
|
|
85
|
+
subscribe: (trackNames?: string[], count?: number) => Promise<unknown>;
|
|
93
86
|
/**
|
|
94
87
|
* renegotiate
|
|
95
88
|
*/
|
|
@@ -99,7 +92,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
99
92
|
* @param trackNames string[] = []
|
|
100
93
|
* @example quickvo.subscribe(['trackName1'])
|
|
101
94
|
*/
|
|
102
|
-
stopSubscribe: (trackNames?: string[]) => Promise<
|
|
95
|
+
stopSubscribe: (trackNames?: string[]) => Promise<unknown>;
|
|
103
96
|
/**
|
|
104
97
|
* inactiveTracks
|
|
105
98
|
* @param mediaTypes MediaType[]
|
package/dist/room/RoomPeer.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { K_notifyName } from './enums/notifyName';
|
|
|
3
3
|
import { K_mediaType } from './enums/mediaType';
|
|
4
4
|
import { K_callStrategy } from './enums/callStrategy';
|
|
5
5
|
import * as protos from './protos/index';
|
|
6
|
-
export declare const ignoreEvent: string[];
|
|
7
6
|
export interface QuickOptions {
|
|
8
7
|
/**
|
|
9
8
|
* 应用ID
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "quickvo-sdk-js",
|
|
3
|
-
"description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"main": "./dist/index.umd.cjs",
|
|
10
|
-
"module": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"require": "./dist/index.umd.cjs"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsc && vite build"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@pikaz/location": "^1.0.10",
|
|
23
|
-
"nat-type-identifier": "^2.0.12",
|
|
24
|
-
"opus-decoder": "^0.7.10",
|
|
25
|
-
"pako": "^2.1.0",
|
|
26
|
-
"pr-
|
|
27
|
-
"pr-
|
|
28
|
-
"pr-tools": "^1.5.7",
|
|
29
|
-
"pr-ws": "^0.2.5",
|
|
30
|
-
"sdp-transform": "^2.15.0",
|
|
31
|
-
"webm-duration-fix": "^1.0.4"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"protobufjs": "^7.4.0",
|
|
35
|
-
"typescript": "^5.8.2",
|
|
36
|
-
"vite": "^6.2.2",
|
|
37
|
-
"vite-plugin-bundle-obfuscator": "^1.6.0",
|
|
38
|
-
"vite-plugin-dts": "^4.5.3"
|
|
39
|
-
},
|
|
40
|
-
"private": false,
|
|
41
|
-
"author": "Breathe",
|
|
42
|
-
"keywords": [
|
|
43
|
-
"quickvo-sdk-js"
|
|
44
|
-
],
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "https://github.com/Breathe97/quickvo-sdk-js"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "quickvo-sdk-js",
|
|
3
|
+
"description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
|
|
4
|
+
"version": "1.0.6",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/index.umd.cjs",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.umd.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc && vite build"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@pikaz/location": "^1.0.10",
|
|
23
|
+
"nat-type-identifier": "^2.0.12",
|
|
24
|
+
"opus-decoder": "^0.7.10",
|
|
25
|
+
"pako": "^2.1.0",
|
|
26
|
+
"pr-async-queue": "^0.1.1",
|
|
27
|
+
"pr-audio-stream": "^0.1.1",
|
|
28
|
+
"pr-tools": "^1.5.7",
|
|
29
|
+
"pr-ws": "^0.2.5",
|
|
30
|
+
"sdp-transform": "^2.15.0",
|
|
31
|
+
"webm-duration-fix": "^1.0.4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"protobufjs": "^7.4.0",
|
|
35
|
+
"typescript": "^5.8.2",
|
|
36
|
+
"vite": "^6.2.2",
|
|
37
|
+
"vite-plugin-bundle-obfuscator": "^1.6.0",
|
|
38
|
+
"vite-plugin-dts": "^4.5.3"
|
|
39
|
+
},
|
|
40
|
+
"private": false,
|
|
41
|
+
"author": "Breathe",
|
|
42
|
+
"keywords": [
|
|
43
|
+
"quickvo-sdk-js"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/Breathe97/quickvo-sdk-js"
|
|
48
|
+
}
|
|
49
|
+
}
|