quickvo-sdk-js 1.7.0 → 1.7.2
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/chunk-4NULXiuZ.js +59 -0
- package/dist/index.js +15767 -15133
- package/dist/index.umd.cjs +2 -2
- package/dist/lib-Bb_AVEXI.js +10834 -0
- package/dist/src/QuickVO.d.ts +4 -4
- package/dist/src/action/ActionSFU.d.ts +5 -4
- package/dist/src/action/Task.d.ts +1 -1
- package/dist/src/base/modules/Peer.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-CsPFSEoR.js +0 -60
- package/dist/lib-CzTuQ1jO.js +0 -11120
package/dist/src/QuickVO.d.ts
CHANGED
|
@@ -52,10 +52,10 @@ export declare class QuickVO {
|
|
|
52
52
|
setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string | undefined) => Promise<void>;
|
|
53
53
|
setMediaTrackConstraints: (mediaType: import('./enums').K_mediaType, constraints: MediaTrackConstraints) => Promise<void>;
|
|
54
54
|
joinRoom: (roomOptions: import('./types').RoomOptions) => Promise<string>;
|
|
55
|
-
publish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<
|
|
56
|
-
stopPublish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<
|
|
57
|
-
subscribe: (usersMediaTypes?: import('./types').UserMediaTypes[]) => Promise<
|
|
58
|
-
stopSubscribe: (usersMediaTypes?: import('./types').UserMediaTypes[]) => Promise<
|
|
55
|
+
publish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<unknown>;
|
|
56
|
+
stopPublish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<unknown>;
|
|
57
|
+
subscribe: (usersMediaTypes?: import('./types').UserMediaTypes[]) => Promise<unknown>;
|
|
58
|
+
stopSubscribe: (usersMediaTypes?: import('./types').UserMediaTypes[]) => Promise<unknown>;
|
|
59
59
|
setBehaviors: (usersBehaviors: Array<{
|
|
60
60
|
id: string;
|
|
61
61
|
behaviors: { [key in import('./enums').K_mediaType]?: boolean; };
|
|
@@ -17,6 +17,7 @@ export declare class ActionSFU {
|
|
|
17
17
|
private _cwsConnectTask;
|
|
18
18
|
private _connectCFTask;
|
|
19
19
|
private _publishTask;
|
|
20
|
+
private _publishNotifyTask;
|
|
20
21
|
private _stopPublishTask;
|
|
21
22
|
private _subscribeTask;
|
|
22
23
|
private _stopSubscribeTask;
|
|
@@ -57,26 +58,26 @@ export declare class ActionSFU {
|
|
|
57
58
|
* @param mediaTypes MediaType[]
|
|
58
59
|
* @example quickvo.publish(['mc_audio', 'mc_video'])
|
|
59
60
|
*/
|
|
60
|
-
publish: (mediaTypes: K_mediaType[]) => Promise<
|
|
61
|
+
publish: (mediaTypes: K_mediaType[]) => Promise<unknown>;
|
|
61
62
|
/**
|
|
62
63
|
* stopPublish
|
|
63
64
|
* @param trackNames string[] = []
|
|
64
65
|
* @example quickvo.stopPublish(['mc_audio'])
|
|
65
66
|
*/
|
|
66
|
-
stopPublish: (mediaTypes: K_mediaType[]) => Promise<
|
|
67
|
+
stopPublish: (mediaTypes: K_mediaType[]) => Promise<unknown>;
|
|
67
68
|
/**
|
|
68
69
|
* subscribe
|
|
69
70
|
* @param usersMediaTypes: UserMediaTypes[] = [] 不传入订阅所有
|
|
70
71
|
* @example quickvo.subscribe([{ userId: '123', mediaTypes: ['mc_audio', 'mc_video'] }])
|
|
71
72
|
*/
|
|
72
|
-
subscribe: (usersMediaTypes?: UserMediaTypes[]) => Promise<
|
|
73
|
+
subscribe: (usersMediaTypes?: UserMediaTypes[]) => Promise<unknown>;
|
|
73
74
|
/**
|
|
74
75
|
* stopSubscribe
|
|
75
76
|
* @param usersMediaTypes: UserMediaTypes[] = [] 不传入取消订阅所有
|
|
76
77
|
* @example quickvo.stopSubscribe([{ userId: '123', mediaTypes: ['mc_audio', 'mc_video'] }])
|
|
77
78
|
* @returns Promise<boolean>
|
|
78
79
|
*/
|
|
79
|
-
stopSubscribe: (usersMediaTypes?: UserMediaTypes[]) => Promise<
|
|
80
|
+
stopSubscribe: (usersMediaTypes?: UserMediaTypes[]) => Promise<unknown>;
|
|
80
81
|
/**
|
|
81
82
|
* quitRoom
|
|
82
83
|
* @example quickvo.quitRoom()
|
package/package.json
CHANGED
package/dist/chunk-CsPFSEoR.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
var e = n;
|
|
2
|
-
function t() {
|
|
3
|
-
var e = /* @__PURE__ */ "2257300jyijKk.getPrototypeOf.default.7xQgWbv.prototype.1105212SfNeDQ.getOwnPropertyDescriptor.bind.create.hYeyP.object.23913fIIaOQ.nldSK.9ixbexI.hoWTc.getOwnPropertyNames.toStringTag.enumerable.27817640WgurZn.Stlvs.__esModule.length.UoNdl.defineProperty.2227784QuliZj.Module.911517yGixHC.444oZvkKJ.148482xJcTJZ.VYNZY".split(".");
|
|
4
|
-
return t = function() {
|
|
5
|
-
return e;
|
|
6
|
-
}, t();
|
|
7
|
-
}
|
|
8
|
-
function n(e, n) {
|
|
9
|
-
return e -= 198, t()[e];
|
|
10
|
-
}
|
|
11
|
-
(function(e, t) {
|
|
12
|
-
for (var r = n, i = e();;) try {
|
|
13
|
-
if (-parseInt(r(222)) / 1 + parseInt(r(224)) / 2 + parseInt(r(207)) / 3 * (-parseInt(r(223)) / 4) + -parseInt(r(226)) / 5 + -parseInt(r(201)) / 6 * (-parseInt(r(199)) / 7) + -parseInt(r(220)) / 8 + -parseInt(r(209)) / 9 * (-parseInt(r(214)) / 10) === t) break;
|
|
14
|
-
i.push(i.shift());
|
|
15
|
-
} catch {
|
|
16
|
-
i.push(i.shift());
|
|
17
|
-
}
|
|
18
|
-
})(t, 513976);
|
|
19
|
-
var r = Object[e(204)], i = Object[e(219)], a = Object[e(202)], o = Object[e(211)], s = Object[e(227)], c = Object[e(200)].hasOwnProperty, l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), u = (t, n) => {
|
|
20
|
-
var r = e, a = { UoNdl: function(e, t, n, r) {
|
|
21
|
-
return e(t, n, r);
|
|
22
|
-
} };
|
|
23
|
-
let o = {};
|
|
24
|
-
for (var s in t) a[r(218)](i, o, s, {
|
|
25
|
-
get: t[s],
|
|
26
|
-
enumerable: !0
|
|
27
|
-
});
|
|
28
|
-
return !n && i(o, Symbol[r(212)], { value: r(221) }), o;
|
|
29
|
-
}, d = (t, n, r, s) => {
|
|
30
|
-
var l = e, u = {
|
|
31
|
-
hoWTc: function(e, t) {
|
|
32
|
-
return e === t;
|
|
33
|
-
},
|
|
34
|
-
hYeyP: l(206),
|
|
35
|
-
nhfUL: function(e, t) {
|
|
36
|
-
return e === t;
|
|
37
|
-
},
|
|
38
|
-
Stlvs: function(e, t) {
|
|
39
|
-
return e(t);
|
|
40
|
-
},
|
|
41
|
-
VYNZY: function(e, t) {
|
|
42
|
-
return e < t;
|
|
43
|
-
},
|
|
44
|
-
nldSK: function(e, t, n, r) {
|
|
45
|
-
return e(t, n, r);
|
|
46
|
-
},
|
|
47
|
-
AjFvb: function(e, t, n) {
|
|
48
|
-
return e(t, n);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
if (n && u[l(210)](typeof n, u[l(205)]) || u.nhfUL(typeof n, "function")) for (var d = u[l(215)](o, n), f = 0, p = d[l(217)], m; u[l(225)](f, p); f++) m = d[f], !c.call(t, m) && m !== r && u[l(208)](i, t, m, {
|
|
52
|
-
get: ((e) => n[e])[l(203)](null, m),
|
|
53
|
-
enumerable: !(s = u.AjFvb(a, n, m)) || s[l(213)]
|
|
54
|
-
});
|
|
55
|
-
return t;
|
|
56
|
-
}, f = (t, n, a) => (a = t == null ? {} : r(s(t)), d(n || !t || !t[e(216)] ? i(a, e(198), {
|
|
57
|
-
value: t,
|
|
58
|
-
enumerable: !0
|
|
59
|
-
}) : a, t));
|
|
60
|
-
export { u as n, f as r, l as t };
|