@ray-js/ray-ipc-player 2.0.24 → 2.0.25
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.
- package/lib/index.js +6 -0
- package/lib/index.module.less +0 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -189,6 +189,12 @@ const Player = props => {
|
|
|
189
189
|
useMount(() => {
|
|
190
190
|
onNetworkStatusChange(res => {
|
|
191
191
|
setPhoneNetworkConnect(res.isConnected);
|
|
192
|
+
if (!res.isConnected) {
|
|
193
|
+
// 断网,需要主动调用断流以及断开P2P
|
|
194
|
+
ipcTTTOperatorLog('VID: network is not connected, need stop preview and disconnect');
|
|
195
|
+
stopPreview();
|
|
196
|
+
disconnect();
|
|
197
|
+
}
|
|
192
198
|
});
|
|
193
199
|
});
|
|
194
200
|
useUnmount(() => {
|
package/lib/index.module.less
CHANGED
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
text-align: center;
|
|
155
155
|
font-size: 12px;
|
|
156
156
|
padding: 0 16px;
|
|
157
|
-
word-break: break-all;
|
|
158
157
|
|
|
159
158
|
.errIconContainer {
|
|
160
159
|
.errIcon {
|
|
@@ -179,14 +178,12 @@
|
|
|
179
178
|
color: #ffffff;
|
|
180
179
|
font-size: 12px;
|
|
181
180
|
font-weight: 400;
|
|
182
|
-
word-break: break-word;
|
|
183
181
|
}
|
|
184
182
|
.errDesc {
|
|
185
183
|
margin-top: 5px;
|
|
186
184
|
color: rgba(255, 255, 255, 0.7);
|
|
187
185
|
font-size: 12px;
|
|
188
186
|
font-weight: 400;
|
|
189
|
-
word-break: break-word;
|
|
190
187
|
}
|
|
191
188
|
}
|
|
192
189
|
|
|
@@ -211,7 +208,6 @@
|
|
|
211
208
|
margin: 0 4px;
|
|
212
209
|
text-overflow: ellipsis;
|
|
213
210
|
padding: 8px 16px;
|
|
214
|
-
word-break: break-word;
|
|
215
211
|
}
|
|
216
212
|
.operatorBtn:hover {
|
|
217
213
|
opacity: 0.9;
|