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.
@@ -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
- emitRemoteEvent('RemoteLiveStreamStartReused', device, {
4014
- streamId,
4015
- fps,
4016
- mode: transfer.mode,
4017
- frameMode: transfer.frameMode,
4018
- monitorIndex
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {