@realsee/live 0.5.0-alpha.1 → 0.5.0-alpha.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.
@@ -785,6 +785,23 @@ function parseLiveMsg(jsonTxt) {
785
785
  }
786
786
  }
787
787
 
788
+ var LiveState;
789
+ (function (LiveState) {
790
+ LiveState[LiveState["NOTINITIALIZED"] = -1] = "NOTINITIALIZED";
791
+ /**
792
+ * 正在链接中
793
+ */
794
+ LiveState[LiveState["CONNECTING"] = 0] = "CONNECTING";
795
+ /**
796
+ * 已经链接并且可以通讯
797
+ */
798
+ LiveState[LiveState["OPEN"] = 1] = "OPEN";
799
+ /**
800
+ * 连接已关闭或者链接失败
801
+ */
802
+ LiveState[LiveState["CLOSED"] = 3] = "CLOSED";
803
+ })(LiveState || (LiveState = {}));
804
+
788
805
  /**
789
806
  * 用户当前状态枚举。
790
807
  */
@@ -942,23 +959,6 @@ exports.default = LogLevel;
942
959
 
943
960
  var LogLevel = /*@__PURE__*/getDefaultExportFromCjs(LogLevel_1);
944
961
 
945
- var LiveState;
946
- (function (LiveState) {
947
- LiveState[LiveState["NOTINITIALIZED"] = -1] = "NOTINITIALIZED";
948
- /**
949
- * 正在链接中
950
- */
951
- LiveState[LiveState["CONNECTING"] = 0] = "CONNECTING";
952
- /**
953
- * 已经链接并且可以通讯
954
- */
955
- LiveState[LiveState["OPEN"] = 1] = "OPEN";
956
- /**
957
- * 连接已关闭或者链接失败
958
- */
959
- LiveState[LiveState["CLOSED"] = 3] = "CLOSED";
960
- })(LiveState || (LiveState = {}));
961
-
962
962
  function appendUri(uri, query) {
963
963
  const hasQuery = uri.indexOf('?') !== -1;
964
964
  const newQuery = Object.keys(query).reduce((accu, curr, idx) => `${accu}${(idx === 0 && !hasQuery) ? '?' : '&'}${curr}=${query[curr]}`, '');
@@ -2333,5 +2333,5 @@ function createLiveReact(options) {
2333
2333
  };
2334
2334
  }
2335
2335
 
2336
- export { BrowserRTC, BrowserRTC4Chime, BuiltInRTCType, BuiltinActionType, BuiltinEventType, Command, CoreRTC, MemUserStatus, MicroStatus, RTCJoinedInfoCodeEnum, RTCType, UserStatus, VRWebViewRTC, WebSocketCloseError, WebSocketErrorType, WebSocketState, createLive, createLiveReact, parseLiveMsg, parseWSClsErr };
2336
+ export { BrowserRTC, BrowserRTC4Chime, BuiltInRTCType, BuiltinActionType, BuiltinEventType, Command, CoreRTC, LiveState, MemUserStatus, MicroStatus, RTCJoinedInfoCodeEnum, RTCType, UserStatus, VRWebViewRTC, WebSocketCloseError, WebSocketErrorType, WebSocketState, createLive, createLiveReact, parseLiveMsg, parseWSClsErr };
2337
2337
  //# sourceMappingURL=realsee-live.esm.js.map