quickvo-sdk-js 1.6.74 → 1.6.75

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.
@@ -51,7 +51,7 @@ export declare class QuickVO {
51
51
  setLocalStream: (mediaTypes: import('./enums').K_mediaType[], active: boolean) => Promise<void>;
52
52
  setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string | undefined) => Promise<void>;
53
53
  setMediaTrackConstraints: (mediaType: import('./enums').K_mediaType, constraints: MediaTrackConstraints) => Promise<void>;
54
- earlyConnect: () => Promise<true | undefined>;
54
+ earlyConnect: (entirely?: boolean) => Promise<true | undefined>;
55
55
  joinRoom: (roomOptions: import('./types').RoomOptions) => Promise<string>;
56
56
  publish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<true>;
57
57
  stopPublish: (mediaTypes: import('./enums').K_mediaType[]) => Promise<true>;
@@ -4,6 +4,7 @@ import { Base } from '../base/Base';
4
4
  export declare class ActionSFU {
5
5
  base: Base;
6
6
  private _onOnline?;
7
+ private _entirely;
7
8
  private _reconnectTimerId?;
8
9
  /** 网络计算是否进行中,用于避免与 interval 重叠执行 */
9
10
  private _networkCalculating;
@@ -50,7 +51,7 @@ export declare class ActionSFU {
50
51
  * earlyConnect
51
52
  * @param mediaTypes ("mc_audio" | "mc_video" | "ss_video" | "ss_audio")[]
52
53
  */
53
- earlyConnect: () => Promise<true | undefined>;
54
+ earlyConnect: (entirely?: boolean) => Promise<true | undefined>;
54
55
  /**
55
56
  * joinRoom
56
57
  * @param roomOptions RoomOptions
@@ -136,6 +137,7 @@ export declare class ActionSFU {
136
137
  private _reportNetwork;
137
138
  private _createTracks;
138
139
  private _closeTrack;
140
+ private _restorePublish;
139
141
  private _pubNotify;
140
142
  private _submitRtcStats;
141
143
  private _renegotiate;
@@ -37,6 +37,7 @@ export declare class Peer {
37
37
  private static rtcConfigurationFromTurnRsp;
38
38
  setBroadcasted: (mediaTypes: K_mediaType[], active: boolean) => void;
39
39
  getNoBroadcasted: (mediaTypes: K_mediaType[]) => ("mc_audio" | "mc_video" | "ss_video" | "ss_audio")[];
40
+ getBroadcasted: (mediaTypes: K_mediaType[]) => ("mc_audio" | "mc_video" | "ss_video" | "ss_audio")[];
40
41
  checkValid: () => boolean;
41
42
  /**
42
43
  * setRTCRtpSenderParameters
@@ -37,5 +37,6 @@ export declare class LocalUser extends UserBase {
37
37
  hasPermissions: (type: "subscribe" | "publish") => boolean;
38
38
  useLocalStream: (mediaTypes: K_mediaType[]) => void;
39
39
  clear: () => void;
40
+ destroy: () => void;
40
41
  }
41
42
  export {};
@@ -56,5 +56,6 @@ export declare class RemoteUser extends UserBase {
56
56
  useRemoteStream: (mediaTypes: K_mediaType[], peer: Peer) => void;
57
57
  useRemoteP2PStream: (mediaTypes: K_mediaType[]) => void;
58
58
  clear: () => void;
59
+ destroy: () => void;
59
60
  }
60
61
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "1.6.74",
4
+ "version": "1.6.75",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -1,58 +0,0 @@
1
- function e() {
2
- var t = /* @__PURE__ */ "qSfJo.toStringTag.72676dXLgQr.prototype.1505994eyCoJT.1403790OuOdtg.BysLt.getOwnPropertyDescriptor.fKOpT.hasOwnProperty.object.function.qgpaS.19233999TjZQqm.5499536RMvJIU.5TBtCIz.4958128oRdoXU.exports.defineProperty.Module.create.765746nKEOQM.length.bind.qEnET.FQEAs.getPrototypeOf.enumerable.1vFEtbD.call".split(".");
3
- return e = function() {
4
- return t;
5
- }, e();
6
- }
7
- var t = n;
8
- function n(t, n) {
9
- return t -= 391, e()[t];
10
- }
11
- (function(e, t) {
12
- for (var r = n, i = e();;) try {
13
- if (-parseInt(r(397)) / 1 * (-parseInt(r(420)) / 2) + -parseInt(r(404)) / 3 + -parseInt(r(401)) / 4 + -parseInt(r(414)) / 5 * (parseInt(r(403)) / 6) + -parseInt(r(415)) / 7 + -parseInt(r(413)) / 8 + parseInt(r(412)) / 9 === t) break;
14
- i.push(i.shift());
15
- } catch {
16
- i.push(i.shift());
17
- }
18
- })(e, 387140);
19
- var r = Object[t(419)], i = Object[t(417)], a = Object[t(406)], o = Object.getOwnPropertyNames, s = Object[t(395)], c = Object[t(402)][t(408)], l = (e, n) => () => (n || e((n = { exports: {} })[t(416)], n), n[t(416)]), u = (e, n) => {
20
- var r = t, a = { fKOpT: function(e, t, n, r) {
21
- return e(t, n, r);
22
- } };
23
- let o = {};
24
- for (var s in e) i(o, s, {
25
- get: e[s],
26
- enumerable: !0
27
- });
28
- return !n && a[r(407)](i, o, Symbol[r(400)], { value: r(418) }), o;
29
- }, d = (e, n, r, s) => {
30
- var l = t, u = {
31
- FQEAs: function(e, t) {
32
- return e === t;
33
- },
34
- qgpaS: l(409),
35
- qEnET: l(410),
36
- RQhnZ: function(e, t) {
37
- return e(t);
38
- },
39
- qSfJo: function(e, t) {
40
- return e < t;
41
- },
42
- BysLt: function(e, t, n, r) {
43
- return e(t, n, r);
44
- },
45
- GiXOb: function(e, t, n) {
46
- return e(t, n);
47
- }
48
- };
49
- if (n && u[l(394)](typeof n, u[l(411)]) || u[l(394)](typeof n, u[l(393)])) for (var d = u.RQhnZ(o, n), f = 0, p = d[l(391)], m; u[l(399)](f, p); f++) m = d[f], !c[l(398)](e, m) && m !== r && u[l(405)](i, e, m, {
50
- get: ((e) => n[e])[l(392)](null, m),
51
- enumerable: !(s = u.GiXOb(a, n, m)) || s[l(396)]
52
- });
53
- return e;
54
- }, f = (e, t, n) => (n = e == null ? {} : r(s(e)), d(t || !e || !e.__esModule ? i(n, "default", {
55
- value: e,
56
- enumerable: !0
57
- }) : n, e));
58
- export { u as n, f as r, l as t };