fcr-core 3.10.0-alpha → 3.10.0-beta

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.
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "__esModule", {
22
22
  value: true
23
23
  });
24
24
  exports.FcrCoreEngineImpl = void 0;
25
+ require("core-js/modules/es.array.includes.js");
25
26
  require("core-js/modules/es.json.stringify.js");
26
27
  require("core-js/modules/esnext.iterator.constructor.js");
27
28
  require("core-js/modules/esnext.iterator.map.js");
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "__esModule", {
21
21
  value: true
22
22
  });
23
23
  exports.FcrAbilityControlImpl = void 0;
24
+ require("core-js/modules/es.array.includes.js");
24
25
  var _imports = require("../../imports");
25
26
  var _type = require("../../type");
26
27
  var _logger = require("../../utilities/logger");
@@ -48,7 +49,7 @@ class FcrAbilityControlImpl {
48
49
  getPlatformAbility(ability) {
49
50
  const platforms = this._scene.getScenePropertiesByKeyPath(`setting.ability.${ability}`);
50
51
  if (!Array.isArray(platforms)) {
51
- return [_type.FcrPlatform.WEB_DESKTOP, _type.FcrPlatform.MACOS, _type.FcrPlatform.WINDOWS, _type.FcrPlatform.IOS, _type.FcrPlatform.ANDROID, _type.FcrPlatform.WEB_MOBILE, _type.FcrPlatform.HARMONY, _type.FcrPlatform.CONNECTOR_PSTN, _type.FcrPlatform.CONNECTOR_SIP, _type.FcrPlatform.CONNECTOR_H323];
52
+ return [_type.FcrPlatform.WEB_DESKTOP, _type.FcrPlatform.MACOS, _type.FcrPlatform.WINDOWS, _type.FcrPlatform.IOS, _type.FcrPlatform.ANDROID, _type.FcrPlatform.WEB_MOBILE, _type.FcrPlatform.HARMONY, _type.FcrPlatform.LINUX, _type.FcrPlatform.CONNECTOR_PSTN, _type.FcrPlatform.CONNECTOR_SIP, _type.FcrPlatform.CONNECTOR_H323];
52
53
  }
53
54
  return platforms;
54
55
  }
@@ -21,6 +21,7 @@ Object.defineProperty(exports, "__esModule", {
21
21
  value: true
22
22
  });
23
23
  exports.FcrSubRoomControlImpl = exports.FcrBaseRoomControlImpl = void 0;
24
+ require("core-js/modules/es.array.includes.js");
24
25
  var _imports = require("../imports");
25
26
  var _type = require("../type");
26
27
  var _type2 = require("./type");
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "__esModule", {
22
22
  value: true
23
23
  });
24
24
  exports.FcrInterpreterControlImpl = void 0;
25
+ require("core-js/modules/es.array.includes.js");
25
26
  require("core-js/modules/esnext.iterator.constructor.js");
26
27
  require("core-js/modules/esnext.iterator.map.js");
27
28
  var _imports = require("../../imports");
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "__esModule", {
22
22
  value: true
23
23
  });
24
24
  exports.FcrMainRoomControlImpl = void 0;
25
+ require("core-js/modules/es.array.includes.js");
25
26
  require("core-js/modules/es.json.stringify.js");
26
27
  require("core-js/modules/esnext.iterator.constructor.js");
27
28
  require("core-js/modules/esnext.iterator.find.js");
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.FcrSubscribedStreamsControl = exports.FcrStreamControlImpl = void 0;
10
+ require("core-js/modules/es.array.includes.js");
10
11
  require("core-js/modules/es.array.push.js");
11
12
  require("core-js/modules/es.json.stringify.js");
12
13
  require("core-js/modules/esnext.iterator.constructor.js");
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.FcrSttControlImpl = void 0;
10
+ require("core-js/modules/es.array.includes.js");
10
11
  require("core-js/modules/es.array.push.js");
11
- require("core-js/modules/es.json.stringify.js");
12
12
  require("core-js/modules/esnext.iterator.constructor.js");
13
13
  require("core-js/modules/esnext.iterator.filter.js");
14
14
  require("core-js/modules/esnext.iterator.map.js");
@@ -74,7 +74,6 @@ class FcrSttControlImpl {
74
74
  return;
75
75
  }
76
76
  const sttStreamMessageData = await (0, _imports.deCompressGzipToJson)(data.payload);
77
- this.logger.info('onStreamMessageReceived sttStreamMessageData: ', JSON.stringify(sttStreamMessageData));
78
77
  this._handleSttStreamMessageData(sttStreamMessageData, sceneId);
79
78
  },
80
79
  onUserPropertiesUpdated: (sceneId, event) => {
package/lib/schema.js CHANGED
@@ -69,6 +69,7 @@ Object.defineProperty(exports, "z", {
69
69
  return _imports.z;
70
70
  }
71
71
  });
72
+ require("core-js/modules/es.array.includes.js");
72
73
  require("core-js/modules/esnext.iterator.constructor.js");
73
74
  require("core-js/modules/esnext.iterator.some.js");
74
75
  var _types = require("./room-control/interpreter-control/types");
package/lib/type.d.ts CHANGED
@@ -76,6 +76,7 @@ export declare enum FcrPlatform {
76
76
  ANDROID = 5,
77
77
  WEB_MOBILE = 6,
78
78
  HARMONY = 7,
79
+ LINUX = 8,
79
80
  CONNECTOR_PSTN = 101,
80
81
  CONNECTOR_SIP = 102,
81
82
  CONNECTOR_H323 = 103
package/lib/type.js CHANGED
@@ -365,6 +365,7 @@ let FcrPlatform = exports.FcrPlatform = /*#__PURE__*/function (FcrPlatform) {
365
365
  FcrPlatform[FcrPlatform["ANDROID"] = 5] = "ANDROID";
366
366
  FcrPlatform[FcrPlatform["WEB_MOBILE"] = 6] = "WEB_MOBILE";
367
367
  FcrPlatform[FcrPlatform["HARMONY"] = 7] = "HARMONY";
368
+ FcrPlatform[FcrPlatform["LINUX"] = 8] = "LINUX";
368
369
  FcrPlatform[FcrPlatform["CONNECTOR_PSTN"] = 101] = "CONNECTOR_PSTN";
369
370
  FcrPlatform[FcrPlatform["CONNECTOR_SIP"] = 102] = "CONNECTOR_SIP";
370
371
  FcrPlatform[FcrPlatform["CONNECTOR_H323"] = 103] = "CONNECTOR_H323";
@@ -34,11 +34,15 @@ const DEFAULT_LOG_FILE_SIZE = 512;
34
34
  const RTC_PRESET_PARAMS_MAP = {
35
35
  [_imports.FcrApplicationPlatform.WINDOWS]: [{
36
36
  'rtc.video.default_hw_decoder_thres': 921600
37
+ }, {
38
+ 'rtc.video.h264_hw_min_res_level': 4
37
39
  }],
38
40
  [_imports.FcrApplicationPlatform.MACOS]: [{
39
41
  'che.video.screenCaptureMode': 1
40
42
  }, {
41
43
  'che.video.screen_disable_frame_transparent_check': true
44
+ }, {
45
+ 'rtc.video.h264_hw_min_res_level': 4
42
46
  }],
43
47
  [_imports.FcrApplicationPlatform.WEB_DESKTOP]: [{
44
48
  RESTRICTION_SET_PLAYBACK_DEVICE: false
@@ -100,7 +104,7 @@ const ELECTRON_COMMON_PARAMS = [
100
104
  }];
101
105
 
102
106
  /** ELECTRON platforms set */
103
- const ELECTRON_PLATFORMS = new Set([_imports.FcrApplicationPlatform.WINDOWS, _imports.FcrApplicationPlatform.MACOS]);
107
+ const ELECTRON_PLATFORMS = new Set([_imports.FcrApplicationPlatform.WINDOWS, _imports.FcrApplicationPlatform.MACOS, _imports.FcrApplicationPlatform.LINUX]);
104
108
 
105
109
  /** HARMONY or ELECTRON platforms set */
106
110
  const HARMONY_OR_ELECTRON_PLATFORMS = new Set([_imports.FcrApplicationPlatform.HARMONY, ...ELECTRON_PLATFORMS]);
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ROOM_NON_RETRYABLE_ERRORS = exports.ROOM_JOIN_NON_RETRYABLE_ERRORS = void 0;
7
7
  exports.canRetryError = canRetryError;
8
8
  exports.canRetryJoinError = canRetryJoinError;
9
+ require("core-js/modules/es.array.includes.js");
9
10
  var _imports = require("../imports");
10
11
  /**
11
12
  * 通用重试辅助工具
@@ -53,9 +53,18 @@ const MOBILE_HIGH_CAMERA_CONFIG = {
53
53
  bitrate: 1000,
54
54
  frameRate: 15
55
55
  };
56
+ const LINUX_HIGH_CAMERA_CONFIG = {
57
+ dimensions: {
58
+ width: 960,
59
+ height: 540
60
+ },
61
+ bitrate: 1000,
62
+ frameRate: 15
63
+ };
56
64
  const HIGH_CAMERA_CONFIG_MAP = {
57
65
  [_imports.FcrApplicationPlatform.HARMONY]: MOBILE_HIGH_CAMERA_CONFIG,
58
- [_imports.FcrApplicationPlatform.WEB_MOBILE]: MOBILE_HIGH_CAMERA_CONFIG
66
+ [_imports.FcrApplicationPlatform.WEB_MOBILE]: MOBILE_HIGH_CAMERA_CONFIG,
67
+ [_imports.FcrApplicationPlatform.LINUX]: LINUX_HIGH_CAMERA_CONFIG
59
68
  };
60
69
  const LOW_CAMERA_CONFIG_MAP = {};
61
70
  const FULL_HIGH_CAMERA_CONFIG_MAP = {};
@@ -16,6 +16,7 @@ import "core-js/modules/esnext.map.some.js";
16
16
  import "core-js/modules/esnext.map.update.js";
17
17
  import "core-js/modules/esnext.symbol.metadata.js";
18
18
  let _initProto, _renewUserTokenDecs, _createMainRoomControlDecs, _createWaitingRoomControlDecs, _createRoomRouterDecs, _createRoomControlAndJoinDecs, _sendPeerMessageDecs, _setParametersDecs;
19
+ import "core-js/modules/es.array.includes.js";
19
20
  import "core-js/modules/es.json.stringify.js";
20
21
  import "core-js/modules/esnext.iterator.constructor.js";
21
22
  import "core-js/modules/esnext.iterator.map.js";
@@ -16,6 +16,7 @@ import "core-js/modules/esnext.map.some.js";
16
16
  import "core-js/modules/esnext.map.update.js";
17
17
  import "core-js/modules/esnext.symbol.metadata.js";
18
18
  let _initProto, _isPlatformAbilitySupportedDecs;
19
+ import "core-js/modules/es.array.includes.js";
19
20
  function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
20
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
21
22
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -42,7 +43,7 @@ export class FcrAbilityControlImpl {
42
43
  getPlatformAbility(ability) {
43
44
  const platforms = this._scene.getScenePropertiesByKeyPath(`setting.ability.${ability}`);
44
45
  if (!Array.isArray(platforms)) {
45
- return [FcrPlatform.WEB_DESKTOP, FcrPlatform.MACOS, FcrPlatform.WINDOWS, FcrPlatform.IOS, FcrPlatform.ANDROID, FcrPlatform.WEB_MOBILE, FcrPlatform.HARMONY, FcrPlatform.CONNECTOR_PSTN, FcrPlatform.CONNECTOR_SIP, FcrPlatform.CONNECTOR_H323];
46
+ return [FcrPlatform.WEB_DESKTOP, FcrPlatform.MACOS, FcrPlatform.WINDOWS, FcrPlatform.IOS, FcrPlatform.ANDROID, FcrPlatform.WEB_MOBILE, FcrPlatform.HARMONY, FcrPlatform.LINUX, FcrPlatform.CONNECTOR_PSTN, FcrPlatform.CONNECTOR_SIP, FcrPlatform.CONNECTOR_H323];
46
47
  }
47
48
  return platforms;
48
49
  }
@@ -16,6 +16,7 @@ import "core-js/modules/esnext.map.some.js";
16
16
  import "core-js/modules/esnext.map.update.js";
17
17
  import "core-js/modules/esnext.symbol.metadata.js";
18
18
  let _initProto, _joinDecs, _updateRoomPropertiesDecs, _updateIncrementRoomPropertiesDecs, _deleteRoomPropertiesDecs, _startCloudRecordingDecs, _startLiveStreamingDecs, _updateLiveStreamingLayoutDecs, _sendRoomMessageDecs;
19
+ import "core-js/modules/es.array.includes.js";
19
20
  function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
20
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
21
22
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -16,6 +16,7 @@ import "core-js/modules/esnext.map.some.js";
16
16
  import "core-js/modules/esnext.map.update.js";
17
17
  import "core-js/modules/esnext.symbol.metadata.js";
18
18
  let _initProto, _createRoomControlDecs, _setInterpreterUsersDecs;
19
+ import "core-js/modules/es.array.includes.js";
19
20
  import "core-js/modules/esnext.iterator.constructor.js";
20
21
  import "core-js/modules/esnext.iterator.map.js";
21
22
  function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function (e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O.static = l, O.private = f, f ? 2 === o ? k = function (e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function (e) { return e[n]; }, (o < 2 || 4 === o) && (F = function (e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == typeof P && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol.for("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function (t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
@@ -16,6 +16,7 @@ import "core-js/modules/esnext.map.some.js";
16
16
  import "core-js/modules/esnext.map.update.js";
17
17
  import "core-js/modules/esnext.symbol.metadata.js";
18
18
  let _initProto, _enableWaitingRoomDecs, _moveToWaitingRoomByUserIdsDecs;
19
+ import "core-js/modules/es.array.includes.js";
19
20
  import "core-js/modules/es.json.stringify.js";
20
21
  import "core-js/modules/esnext.iterator.constructor.js";
21
22
  import "core-js/modules/esnext.iterator.find.js";
@@ -1,6 +1,7 @@
1
1
  import "core-js/modules/esnext.function.metadata.js";
2
2
  import "core-js/modules/esnext.symbol.metadata.js";
3
3
  let _initProto, _addLocalStreamsDecs, _bindLocalStreamsDecs, _updatePublishPrivilegeOfStreamsDecs, _removeStreamsDecs, _setVideoEncoderConfigDecs, _setDualStreamModeDecs, _setScreenScenarioDecs, _startRenderRemoteVideoStreamDecs, _stopRenderRemoteVideoStreamDecs, _startPlayRemoteAudioStreamDecs, _stopPlayRemoteAudioStreamDecs, _takeSnapshotDecs, _addLocalScreenStreamDecs, _adjustRemoteAudioStreamVolumeDecs, _mergeAudioStreamDecs, _splitAudioStreamDecs;
4
+ import "core-js/modules/es.array.includes.js";
4
5
  import "core-js/modules/es.array.push.js";
5
6
  import "core-js/modules/es.json.stringify.js";
6
7
  import "core-js/modules/esnext.iterator.constructor.js";
@@ -1,8 +1,8 @@
1
1
  import "core-js/modules/esnext.function.metadata.js";
2
2
  import "core-js/modules/esnext.symbol.metadata.js";
3
3
  let _initProto, _startCaptionDecs, _startTranscribingDecs, _updateSourceLanguageDecs, _subscribeTranscribingLanguageDecs;
4
+ import "core-js/modules/es.array.includes.js";
4
5
  import "core-js/modules/es.array.push.js";
5
- import "core-js/modules/es.json.stringify.js";
6
6
  import "core-js/modules/esnext.iterator.constructor.js";
7
7
  import "core-js/modules/esnext.iterator.filter.js";
8
8
  import "core-js/modules/esnext.iterator.map.js";
@@ -68,7 +68,6 @@ export class FcrSttControlImpl {
68
68
  return;
69
69
  }
70
70
  const sttStreamMessageData = await deCompressGzipToJson(data.payload);
71
- this.logger.info('onStreamMessageReceived sttStreamMessageData: ', JSON.stringify(sttStreamMessageData));
72
71
  this._handleSttStreamMessageData(sttStreamMessageData, sceneId);
73
72
  },
74
73
  onUserPropertiesUpdated: (sceneId, event) => {
package/lib-es/schema.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/esnext.iterator.constructor.js";
2
3
  import "core-js/modules/esnext.iterator.some.js";
3
4
  import { FcrLanguage } from './room-control/interpreter-control/types';
package/lib-es/type.js CHANGED
@@ -86,6 +86,7 @@ export let FcrPlatform = /*#__PURE__*/function (FcrPlatform) {
86
86
  FcrPlatform[FcrPlatform["ANDROID"] = 5] = "ANDROID";
87
87
  FcrPlatform[FcrPlatform["WEB_MOBILE"] = 6] = "WEB_MOBILE";
88
88
  FcrPlatform[FcrPlatform["HARMONY"] = 7] = "HARMONY";
89
+ FcrPlatform[FcrPlatform["LINUX"] = 8] = "LINUX";
89
90
  FcrPlatform[FcrPlatform["CONNECTOR_PSTN"] = 101] = "CONNECTOR_PSTN";
90
91
  FcrPlatform[FcrPlatform["CONNECTOR_SIP"] = 102] = "CONNECTOR_SIP";
91
92
  FcrPlatform[FcrPlatform["CONNECTOR_H323"] = 103] = "CONNECTOR_H323";
@@ -28,11 +28,15 @@ const DEFAULT_LOG_FILE_SIZE = 512;
28
28
  const RTC_PRESET_PARAMS_MAP = {
29
29
  [FcrApplicationPlatform.WINDOWS]: [{
30
30
  'rtc.video.default_hw_decoder_thres': 921600
31
+ }, {
32
+ 'rtc.video.h264_hw_min_res_level': 4
31
33
  }],
32
34
  [FcrApplicationPlatform.MACOS]: [{
33
35
  'che.video.screenCaptureMode': 1
34
36
  }, {
35
37
  'che.video.screen_disable_frame_transparent_check': true
38
+ }, {
39
+ 'rtc.video.h264_hw_min_res_level': 4
36
40
  }],
37
41
  [FcrApplicationPlatform.WEB_DESKTOP]: [{
38
42
  RESTRICTION_SET_PLAYBACK_DEVICE: false
@@ -94,7 +98,7 @@ const ELECTRON_COMMON_PARAMS = [
94
98
  }];
95
99
 
96
100
  /** ELECTRON platforms set */
97
- const ELECTRON_PLATFORMS = new Set([FcrApplicationPlatform.WINDOWS, FcrApplicationPlatform.MACOS]);
101
+ const ELECTRON_PLATFORMS = new Set([FcrApplicationPlatform.WINDOWS, FcrApplicationPlatform.MACOS, FcrApplicationPlatform.LINUX]);
98
102
 
99
103
  /** HARMONY or ELECTRON platforms set */
100
104
  const HARMONY_OR_ELECTRON_PLATFORMS = new Set([FcrApplicationPlatform.HARMONY, ...ELECTRON_PLATFORMS]);
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  /**
2
3
  * 通用重试辅助工具
3
4
  *
@@ -47,9 +47,18 @@ const MOBILE_HIGH_CAMERA_CONFIG = {
47
47
  bitrate: 1000,
48
48
  frameRate: 15
49
49
  };
50
+ const LINUX_HIGH_CAMERA_CONFIG = {
51
+ dimensions: {
52
+ width: 960,
53
+ height: 540
54
+ },
55
+ bitrate: 1000,
56
+ frameRate: 15
57
+ };
50
58
  const HIGH_CAMERA_CONFIG_MAP = {
51
59
  [FcrApplicationPlatform.HARMONY]: MOBILE_HIGH_CAMERA_CONFIG,
52
- [FcrApplicationPlatform.WEB_MOBILE]: MOBILE_HIGH_CAMERA_CONFIG
60
+ [FcrApplicationPlatform.WEB_MOBILE]: MOBILE_HIGH_CAMERA_CONFIG,
61
+ [FcrApplicationPlatform.LINUX]: LINUX_HIGH_CAMERA_CONFIG
53
62
  };
54
63
  const LOW_CAMERA_CONFIG_MAP = {};
55
64
  const FULL_HIGH_CAMERA_CONFIG_MAP = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fcr-core",
3
3
  "description": "Core APIs for building online scenes",
4
- "version": "3.10.0-alpha",
4
+ "version": "3.10.0-beta",
5
5
  "module": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "files": [
@@ -41,7 +41,7 @@
41
41
  "@types/lodash": "^4.14.168",
42
42
  "@types/sinon": "^17.0.2",
43
43
  "@types/uuid": "^8.3.0",
44
- "agora-toolchain": "3.10.0-alpha",
44
+ "agora-toolchain": "3.10.0-beta",
45
45
  "core-js": "^3.33.3",
46
46
  "decomment": "^0.9.5",
47
47
  "husky": "^9.0.11",
@@ -61,8 +61,8 @@
61
61
  "@netless/video-js-plugin": "^0.3.8",
62
62
  "@netless/white-snapshot": "^0.4.2",
63
63
  "@netless/window-manager": "^1.0.7-beta.6",
64
- "agora-foundation": "3.10.0-alpha",
65
- "agora-rte-sdk": "3.10.0-alpha",
64
+ "agora-foundation": "3.10.0-beta",
65
+ "agora-rte-sdk": "3.10.0-beta",
66
66
  "await-to-js": "^3.0.0",
67
67
  "dayjs": "^1.10.4",
68
68
  "easemob-websdk": "4.13.0",