@realsee/live 0.4.0-alpha.4 → 0.4.0-beta.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.
Files changed (52) hide show
  1. package/README.md +22 -0
  2. package/dist/realsee-live.cjs.development.js +10 -8
  3. package/dist/realsee-live.cjs.development.js.map +1 -1
  4. package/dist/realsee-live.cjs.production.js +1 -1
  5. package/dist/realsee-live.cjs.production.js.map +1 -1
  6. package/dist/realsee-live.esm.js +10 -8
  7. package/dist/realsee-live.esm.js.map +1 -1
  8. package/dist/realsee-live.umd.development.js +10 -8
  9. package/dist/realsee-live.umd.development.js.map +1 -1
  10. package/dist/realsee-live.umd.production.js +1 -1
  11. package/dist/realsee-live.umd.production.js.map +1 -1
  12. package/dist/typings/react/LiveReact.d.ts +2 -0
  13. package/docs/.nojekyll +1 -0
  14. package/docs/assets/custom.css +43 -0
  15. package/docs/assets/highlight.css +120 -0
  16. package/docs/assets/icons.css +1043 -0
  17. package/docs/assets/icons.png +0 -0
  18. package/docs/assets/icons@2x.png +0 -0
  19. package/docs/assets/main.js +52 -0
  20. package/docs/assets/search.js +1 -0
  21. package/docs/assets/style.css +1414 -0
  22. package/docs/assets/widgets.png +0 -0
  23. package/docs/assets/widgets@2x.png +0 -0
  24. package/docs/classes/BrowserRTC.html +68 -0
  25. package/docs/classes/BrowserRTC4Chime.html +76 -0
  26. package/docs/classes/CoreRTC.html +70 -0
  27. package/docs/classes/VRWebViewRTC.html +68 -0
  28. package/docs/enums/BuiltInRTCType.html +1 -0
  29. package/docs/enums/BuiltinActionType.html +15 -0
  30. package/docs/enums/BuiltinEventType.html +7 -0
  31. package/docs/enums/Command.html +7 -0
  32. package/docs/enums/MemUserStatus.html +1 -0
  33. package/docs/enums/MicroStatus.html +3 -0
  34. package/docs/enums/RTCJoinedInfoCodeEnum.html +11 -0
  35. package/docs/enums/RTCType.html +3 -0
  36. package/docs/enums/UserStatus.html +9 -0
  37. package/docs/enums/WebSocketCloseError.html +19 -0
  38. package/docs/enums/WebSocketErrorType.html +1 -0
  39. package/docs/enums/WebSocketState.html +13 -0
  40. package/docs/index.html +386 -0
  41. package/docs/interfaces/AttendeeResponse.html +1 -0
  42. package/docs/interfaces/GetVoiceSignReturnType.html +3 -0
  43. package/docs/interfaces/Live.html +116 -0
  44. package/docs/interfaces/LiveOptions.html +39 -0
  45. package/docs/interfaces/LiveReact.html +52 -0
  46. package/docs/interfaces/MeetingResponse.html +1 -0
  47. package/docs/interfaces/MeetingSessionConfigurationOptions.html +1 -0
  48. package/docs/interfaces/RTCJoinedInfo.html +3 -0
  49. package/docs/interfaces/RTCProtocol.html +70 -0
  50. package/docs/interfaces/VRWebViewRTCOptions.html +1 -0
  51. package/docs/modules.html +133 -0
  52. package/package.json +5 -2
@@ -50881,6 +50881,10 @@
50881
50881
  var _a, _b, _c;
50882
50882
  super();
50883
50883
  this.keyframes = new Subscribe$1();
50884
+ const jsBridge = ((_a = options.jsBridge) !== null && _a !== void 0 ? _a : options.useBuiltInJsBridge)
50885
+ ? new JSBridge()
50886
+ : undefined;
50887
+ liveController.options.jsBridge = jsBridge;
50884
50888
  // 没有传rtc实例时
50885
50889
  if (!options.rtc) {
50886
50890
  // 取指定的内部rtc类型
@@ -50888,15 +50892,15 @@
50888
50892
  if (!options.getVoiceSign) {
50889
50893
  throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
50890
50894
  }
50891
- const getVoiceSign = (_a = options.getVoiceSign) !== null && _a !== void 0 ? _a : unimplementedGetVoiceSign;
50895
+ const getVoiceSign = (_b = options.getVoiceSign) !== null && _b !== void 0 ? _b : unimplementedGetVoiceSign;
50892
50896
  switch (options.rtcType) {
50893
50897
  case exports.RTCType.RealseeVRWebViewRTC: {
50894
50898
  // 内置的 VRWebViewRTC
50895
- if (!options.jsBridge) {
50899
+ if (!jsBridge) {
50896
50900
  throw new Error('JsBridge instance must be passed when using built-in VRWebViewRTC instances');
50897
50901
  }
50898
50902
  liveController.options.rtc = new VRWebViewRTC({
50899
- jsBridge: options.jsBridge,
50903
+ jsBridge,
50900
50904
  getVoiceSign,
50901
50905
  });
50902
50906
  break;
@@ -50926,14 +50930,10 @@
50926
50930
  if (!options.getVoiceSign) {
50927
50931
  throw new Error('GetVoiceSign method must be passed when using built-in RTC instances');
50928
50932
  }
50929
- const getVoiceSign = (_b = options.getVoiceSign) !== null && _b !== void 0 ? _b : unimplementedGetVoiceSign;
50930
- const jsBridge = ((_c = options.jsBridge) !== null && _c !== void 0 ? _c : options.useBuiltInJsBridge)
50931
- ? new JSBridge()
50932
- : null;
50933
+ const getVoiceSign = (_c = options.getVoiceSign) !== null && _c !== void 0 ? _c : unimplementedGetVoiceSign;
50933
50934
  if (!jsBridge) {
50934
50935
  throw new Error('jsBridge instance must be passed when using built-in RTC instances');
50935
50936
  }
50936
- options.jsBridge = jsBridge;
50937
50937
  // vrwebview 默认
50938
50938
  if ((isRealseeVRWebview && (isAndroid || isIOS)) || isWxMiniProgram) {
50939
50939
  liveController.options.rtc = new VRWebViewRTC({
@@ -53672,6 +53672,7 @@
53672
53672
  function createLiveReact(options) {
53673
53673
  const LiveContext = React.createContext(null);
53674
53674
  const live = createLive(options);
53675
+ const jsBridge = live.jsBridge;
53675
53676
  function LiveProvider(props) {
53676
53677
  return (React.createElement(LiveContext.Provider, { value: props.live || live }, props.children));
53677
53678
  }
@@ -53867,6 +53868,7 @@
53867
53868
  }
53868
53869
  return {
53869
53870
  live,
53871
+ jsBridge,
53870
53872
  LiveProvider,
53871
53873
  unsafe__useLiveInstance,
53872
53874
  unsafe__useRTCInstance,