@realsee/live 0.6.9 → 0.6.11

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.
@@ -83,4 +83,8 @@ export declare class LiveController extends Subscribe<LiveControllerEventMap> {
83
83
  * @param data
84
84
  */
85
85
  sendMessage(data?: any): void | undefined;
86
+ /**
87
+ * 准备关闭带看
88
+ */
89
+ readyClose(): void;
86
90
  }
@@ -124,7 +124,7 @@ export declare class Live<KeyframesSnapshot extends Record<string, any>> extends
124
124
  * @param reason
125
125
  * @returns
126
126
  */
127
- close: () => Promise<boolean>;
127
+ close: () => Promise<void>;
128
128
  /**
129
129
  * 销毁带看
130
130
  * @returns
@@ -48,7 +48,7 @@ export declare class RobustWebSocket extends Subscribe<RobustWebSocketEventMap>
48
48
  private _attempts;
49
49
  private _reconnects;
50
50
  private _reconnectWhenOnlineAgain;
51
- private _explicitlyClosed;
51
+ _explicitlyClosed: boolean;
52
52
  private _pendingReconnect;
53
53
  private _connectivityEventsAttached;
54
54
  private _heathCheckTimer;
@@ -25,7 +25,7 @@
25
25
  <ul class="tsd-hierarchy">
26
26
  <li><span class="target">VRWebViewRTC</span></li></ul></li></ul></section><aside class="tsd-sources">
27
27
  <ul>
28
- <li>Defined in rtc/VRWebViewRTC.ts:10</li></ul></aside>
28
+ <li>Defined in rtc/VRWebViewRTC.ts:7</li></ul></aside>
29
29
  <section class="tsd-panel-group tsd-index-group">
30
30
  <section class="tsd-panel tsd-index-panel">
31
31
  <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -75,7 +75,7 @@
75
75
  <h4 class="tsd-returns-title">Returns <a href="VRWebViewRTC.html" class="tsd-signature-type" data-tsd-kind="Class">VRWebViewRTC</a></h4><aside class="tsd-sources">
76
76
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#constructor">constructor</a></p>
77
77
  <ul>
78
- <li>Defined in rtc/VRWebViewRTC.ts:22</li></ul></aside></li></ul></section></section>
78
+ <li>Defined in rtc/VRWebViewRTC.ts:19</li></ul></aside></li></ul></section></section>
79
79
  <section class="tsd-panel-group tsd-member-group">
80
80
  <h2>Properties</h2>
81
81
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="joined" class="tsd-anchor"></a>
@@ -85,7 +85,7 @@
85
85
  </div><aside class="tsd-sources">
86
86
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#joined">joined</a></p>
87
87
  <ul>
88
- <li>Defined in rtc/VRWebViewRTC.ts:12</li></ul></aside></section>
88
+ <li>Defined in rtc/VRWebViewRTC.ts:9</li></ul></aside></section>
89
89
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="micro" class="tsd-anchor"></a>
90
90
  <h3 class="tsd-anchor-link"><span>micro</span><a href="#micro" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
91
91
  <div class="tsd-signature">micro<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
@@ -93,12 +93,12 @@
93
93
  </div><aside class="tsd-sources">
94
94
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#micro">micro</a></p>
95
95
  <ul>
96
- <li>Defined in rtc/VRWebViewRTC.ts:13</li></ul></aside></section>
96
+ <li>Defined in rtc/VRWebViewRTC.ts:10</li></ul></aside></section>
97
97
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="options" class="tsd-anchor"></a>
98
98
  <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>options</span><a href="#options" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
99
99
  <div class="tsd-signature">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/VRWebViewRTCOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">VRWebViewRTCOptions</a></div><aside class="tsd-sources">
100
100
  <ul>
101
- <li>Defined in rtc/VRWebViewRTC.ts:16</li></ul></aside></section>
101
+ <li>Defined in rtc/VRWebViewRTC.ts:13</li></ul></aside></section>
102
102
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="type" class="tsd-anchor"></a>
103
103
  <h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
104
104
  <div class="tsd-signature">type<span class="tsd-signature-symbol">:</span> <a href="../enums/RTCType.html" class="tsd-signature-type" data-tsd-kind="Enumeration">RTCType</a><span class="tsd-signature-symbol"> = RTCType.RealseeVRWebViewRTC</span></div>
@@ -106,7 +106,7 @@
106
106
  </div><aside class="tsd-sources">
107
107
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#type">type</a></p>
108
108
  <ul>
109
- <li>Defined in rtc/VRWebViewRTC.ts:11</li></ul></aside></section>
109
+ <li>Defined in rtc/VRWebViewRTC.ts:8</li></ul></aside></section>
110
110
  <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="voiceId" class="tsd-anchor"></a>
111
111
  <h3 class="tsd-anchor-link"><span>voice<wbr/>Id</span><a href="#voiceId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
112
112
  <div class="tsd-signature">voice<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#39;&#39;</span></div>
@@ -114,7 +114,7 @@
114
114
  </div><aside class="tsd-sources">
115
115
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#voiceId">voiceId</a></p>
116
116
  <ul>
117
- <li>Defined in rtc/VRWebViewRTC.ts:14</li></ul></aside></section></section>
117
+ <li>Defined in rtc/VRWebViewRTC.ts:11</li></ul></aside></section></section>
118
118
  <section class="tsd-panel-group tsd-member-group">
119
119
  <h2>Accessors</h2>
120
120
  <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="jsBridge" class="tsd-anchor"></a>
@@ -124,7 +124,7 @@
124
124
  <li class="tsd-description">
125
125
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">JSBridgeProtocol</span></h4><aside class="tsd-sources">
126
126
  <ul>
127
- <li>Defined in rtc/VRWebViewRTC.ts:18</li></ul></aside></li></ul></section></section>
127
+ <li>Defined in rtc/VRWebViewRTC.ts:15</li></ul></aside></li></ul></section></section>
128
128
  <section class="tsd-panel-group tsd-member-group">
129
129
  <h2>Methods</h2>
130
130
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="detectMicro" class="tsd-anchor"></a>
@@ -138,7 +138,7 @@
138
138
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
139
139
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#detectMicro">detectMicro</a></p>
140
140
  <ul>
141
- <li>Defined in rtc/VRWebViewRTC.ts:100</li></ul></aside></li></ul></section>
141
+ <li>Defined in rtc/VRWebViewRTC.ts:85</li></ul></aside></li></ul></section>
142
142
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="emit" class="tsd-anchor"></a>
143
143
  <h3 class="tsd-anchor-link"><span>emit</span><a href="#emit" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
144
144
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
@@ -213,7 +213,7 @@
213
213
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
214
214
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#join">join</a></p>
215
215
  <ul>
216
- <li>Defined in rtc/VRWebViewRTC.ts:41</li></ul></aside></li></ul></section>
216
+ <li>Defined in rtc/VRWebViewRTC.ts:35</li></ul></aside></li></ul></section>
217
217
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="off" class="tsd-anchor"></a>
218
218
  <h3 class="tsd-anchor-link"><span>off</span><a href="#off" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
219
219
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
@@ -375,7 +375,7 @@
375
375
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
376
376
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#quit">quit</a></p>
377
377
  <ul>
378
- <li>Defined in rtc/VRWebViewRTC.ts:89</li></ul></aside></li></ul></section>
378
+ <li>Defined in rtc/VRWebViewRTC.ts:76</li></ul></aside></li></ul></section>
379
379
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="shock" class="tsd-anchor"></a>
380
380
  <h3 class="tsd-anchor-link"><span>shock</span><a href="#shock" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
381
381
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -386,7 +386,7 @@
386
386
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
387
387
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#shock">shock</a></p>
388
388
  <ul>
389
- <li>Defined in rtc/VRWebViewRTC.ts:121</li></ul></aside></li></ul></section>
389
+ <li>Defined in rtc/VRWebViewRTC.ts:104</li></ul></aside></li></ul></section>
390
390
  <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toggleMicro" class="tsd-anchor"></a>
391
391
  <h3 class="tsd-anchor-link"><span>toggle<wbr/>Micro</span><a href="#toggleMicro" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
392
392
  <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
@@ -402,7 +402,7 @@
402
402
  <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
403
403
  <p>Overrides <a href="CoreRTC.html">CoreRTC</a>.<a href="CoreRTC.html#toggleMicro">toggleMicro</a></p>
404
404
  <ul>
405
- <li>Defined in rtc/VRWebViewRTC.ts:109</li></ul></aside></li></ul></section></section></div>
405
+ <li>Defined in rtc/VRWebViewRTC.ts:94</li></ul></aside></li></ul></section></section></div>
406
406
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
407
407
  <div class="tsd-navigation settings">
408
408
  <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/live",
3
- "version": "0.6.9",
3
+ "version": "0.6.11",
4
4
  "description": "如视 Live SDK:基于如视 WebSocket 长链双工通信能力的前端封装,借助此 SDK 您可以快捷地实现具备同屏连线、实时语音的 VR 带看业务能力。",
5
5
  "scripts": {
6
6
  "dev": "tsc && vite build --mode development --watch",