livedesk 0.1.83 → 0.1.84
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/hub/src/remote-hub.js +9 -7
- package/hub/src/server.js +2 -1
- package/package.json +1 -1
package/hub/src/remote-hub.js
CHANGED
|
@@ -4010,13 +4010,15 @@ export function createRemoteHub(options = {}) {
|
|
|
4010
4010
|
if (device.activeLiveStream?.streamId === streamId
|
|
4011
4011
|
&& liveStreamMatchesOptions(device.activeLiveStream, normalized)
|
|
4012
4012
|
&& liveStreamIsReusable(device.activeLiveStream)) {
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4013
|
+
if (options.silentReuse !== true) {
|
|
4014
|
+
emitRemoteEvent('RemoteLiveStreamStartReused', device, {
|
|
4015
|
+
streamId,
|
|
4016
|
+
fps,
|
|
4017
|
+
mode: transfer.mode,
|
|
4018
|
+
frameMode: transfer.frameMode,
|
|
4019
|
+
monitorIndex
|
|
4020
|
+
});
|
|
4021
|
+
}
|
|
4020
4022
|
return {
|
|
4021
4023
|
ok: true,
|
|
4022
4024
|
commandId: device.activeLiveStream.commandId,
|
package/hub/src/server.js
CHANGED
|
@@ -239,7 +239,8 @@ function startFrameSubscriptionLive(ws, reason = 'subscribe', onlyDeviceId = '')
|
|
|
239
239
|
: ws.liveDeskLiveOptions.monitorIndex;
|
|
240
240
|
const result = remoteHub.startLiveStream(deviceId, {
|
|
241
241
|
...ws.liveDeskLiveOptions,
|
|
242
|
-
monitorIndex
|
|
242
|
+
monitorIndex,
|
|
243
|
+
silentReuse: reason === 'watchdog'
|
|
243
244
|
});
|
|
244
245
|
if (result?.ok) {
|
|
245
246
|
started.push({ deviceId, streamId: result.streamId, fps: result.fps, reused: result.reused === true });
|