matterbridge-example-camera 0.0.7-dev-20260724-1c40015 → 0.0.7
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/CHANGELOG.md +15 -1
- package/README.md +27 -0
- package/dist/behaviors/cameraAvSettingsUserLevelManagementServer.js +37 -0
- package/dist/behaviors/webRtcTransportProviderServer.js +19 -10
- package/dist/devices/camera.js +13 -3
- package/dist/devices/videoDoorbell.js +76 -0
- package/dist/module.js +23 -0
- package/npm-shrinkwrap.json +43 -22
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -28,24 +28,38 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
28
28
|
|
|
29
29
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
30
30
|
|
|
31
|
-
## [0.0.7] -
|
|
31
|
+
## [0.0.7] - 2026-07-25
|
|
32
32
|
|
|
33
33
|
### Added
|
|
34
34
|
|
|
35
|
+
- [video doorbell]: Add the Video Doorbell device type (Matter 1.6.0 chapter 16.3). A composite device, always defined via endpoint composition: the root endpoint exposes Basic Information and, unless disabled, a Power Source cluster; the mandatory Camera child endpoint is wired the same way as the standalone `Camera` device, and the mandatory Doorbell child endpoint is wired the same way as the standalone `Doorbell` device. Exposes `addDoorbell()` to add further Doorbell child endpoints.
|
|
36
|
+
- [platform]: Register a Video Doorbell example device in `onStart`.
|
|
37
|
+
- [tests]: Add `vitest/devices/videoDoorbell.test.ts`; extend `vitest/module.test.ts` device-count assertions for the new device.
|
|
38
|
+
- [docs]: Document the Video Doorbell device type in the README.
|
|
35
39
|
- [tests]: Add `vitest/webrtc/weriftSession.test.ts` coverage for the audio track injection path in `WeriftWebRtcSession`: an SDP answer without an injectable audio codec when the remote offer only supports PCMU, skipping non-audio transceivers when selecting the preferred audio codec, only adjusting the audio transceiver(s) that actually negotiated the preferred codec, the `MATTERBRIDGE_CAMERA_DISABLE_TEST_AUDIO=1` toggle, a missing ffmpeg dependency on the audio path, and not re-attaching a test-audio track on a subsequent `createAnswer`. `weriftSession.ts` is back to 100% statement/branch/function/line coverage. Also mark the audio generator's spawn-error handler, its catch block, and the unreachable `adjustedTransceivers === 0` branch in `preferAudioCodecOnTransceivers` as `v8 ignore`, mirroring the already-ignored video counterparts for the same reasons (child-process/werift-internals mocking, and a mimeType that's always found on at least one transceiver).
|
|
40
|
+
- [ptz camera]: Add the PTZ Camera device type. Same device type and Camera AV Stream Management/WebRtcTransportProvider wiring as the standalone `Camera` device, plus the Camera AV Settings User Level Management cluster with the MechanicalPan, MechanicalTilt and MechanicalZoom features, implementing the `MPTZSetPosition` (absolute move, rejecting out-of-range pan/tilt/zoom with a ConstraintError) and `MPTZRelativeMove` (relative move, clamped to the configured range) commands.
|
|
41
|
+
- [behaviors]: Add `src/behaviors/cameraAvSettingsUserLevelManagementServer.ts` with `MatterbridgeCameraAvSettingsUserLevelManagementServer`.
|
|
42
|
+
- [platform]: Register a PTZ Camera example device in `onStart`.
|
|
43
|
+
- [tests]: Add `vitest/behaviors/cameraAvSettingsUserLevelManagementServer.test.ts`; extend `vitest/module.test.ts` device-count assertions for the new device.
|
|
44
|
+
- [docs]: Document the PTZ Camera device type in the README.
|
|
36
45
|
- [platform]: Add log of config.
|
|
37
46
|
- [platform]: Add animation interval in 10 phases.
|
|
38
47
|
- [doorbell]: Add use of cluster client Chime of Server Doorbell in the animation. It needs the Server Doorbell and Server Chime to be paired and a binding in Matter Server dashboard from Server Doorbell Chime client cluster to Server Chime Chime server cluster: [bindings](screenshots/bindings.png).
|
|
39
48
|
- [chip-test]: Add full shell script to run the chip tests.
|
|
49
|
+
- [platform]: Set the software version (plugin version) and hardware version (Matterbridge version) on each device in `addDevice()` before registration, so the BasicInformation/BridgedDeviceBasicInformation Firmware and Hardware fields no longer stay stuck at the default `1.0.0`.
|
|
40
50
|
|
|
41
51
|
### Changed
|
|
42
52
|
|
|
43
53
|
- [package]: Update dependencies and update package.
|
|
54
|
+
- [package]: Bump `werift` to v.0.24.1. This release tightens `setRemoteDescription`/`setLocalDescription` toward W3C `RTCPeerConnection` spec compliance (signaling-state validation, SDP media-section handling), which is stricter than the previous 0.23.0 behavior.
|
|
55
|
+
- [package]: Update agents configs.
|
|
44
56
|
|
|
45
57
|
### Fixed
|
|
46
58
|
|
|
47
59
|
- [chime]: Fix behavior when enabled is false. All chip tests pass.
|
|
48
60
|
- [webrtc]: `createAnswer()` no longer calls `ensureTestAudioTrack()` when the remote offer negotiated no injectable audio codec (e.g. PCMU-only). Previously it still ran with an `undefined` codec and silently defaulted to Opus/payload type 111, injecting RTP the peer never negotiated.
|
|
61
|
+
- [tests]: Fix `vitest/behaviors/webRtcTransportProviderServer.test.ts` session reuse that broke under werift 0.24.1's stricter signaling-state validation: `provideOffer`/`provideAnswer` on an "existing session" test now use dedicated sessions instead of layering a media-less fake re-offer/answer onto the same real, already-negotiated session 1, which used to silently work only because of werift 0.23.0's laxer validation.
|
|
62
|
+
- [webrtc]: `provideIceCandidates` applied ICE candidates one at a time and only returned once every one of them had finished (up to a 5s mDNS resolution/apply timeout, each). A browser offers one host candidate per local network interface, and an interface with no multicast route to the Matterbridge host (e.g. an inactive VPN/virtual adapter) always runs out that timeout — so candidates were stacking up to 5-10s of dead time onto every `ProvideIceCandidates` call, even though a candidate on a reachable interface routinely resolved in milliseconds. Candidates are now applied concurrently, and the command responds as soon as they're recorded instead of waiting for their application to finish (matching how `SolicitOffer`/`ProvideOffer` already invoke Offer/Answer on the peer without blocking their own response) — application results are still logged, just in the background. Diagnosed against a real Edge client.
|
|
49
63
|
|
|
50
64
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
51
65
|
|
package/README.md
CHANGED
|
@@ -80,6 +80,18 @@ Supported by:
|
|
|
80
80
|
|
|
81
81
|
- [Matterserver dashboard](screenshots/matterserver-camera.png)
|
|
82
82
|
|
|
83
|
+
### PTZ Camera
|
|
84
|
+
|
|
85
|
+
Features:
|
|
86
|
+
|
|
87
|
+
- Same device type and Camera AV Stream Management setup as Camera (Video, Audio, Snapshot and ImageControl features, plus the WebRtcTransportProvider cluster and a WebRtcTransportRequestor client).
|
|
88
|
+
- Additionally exposes the Camera AV Settings User Level Management cluster with the MechanicalPan, MechanicalTilt and MechanicalZoom features, so a controller can move the camera to an absolute pan/tilt/zoom position (`MPTZSetPosition`) or by a relative delta (`MPTZRelativeMove`). The MechanicalPresets and DigitalPtz features are not part of this example.
|
|
89
|
+
- `MPTZSetPosition` rejects an absolute pan, tilt, or zoom value outside of the configured range with a ConstraintError.
|
|
90
|
+
- `MPTZRelativeMove` adds the pan/tilt/zoom delta directly to the current position, clamping the result to the configured range instead of rejecting it, since a relative move is expected to just stop at the mechanical limit.
|
|
91
|
+
- Configurable pan (`panMin`/`panMax`), tilt (`tiltMin`/`tiltMax`) and zoom (`zoomMax`) ranges, and initial `mptzPosition`. Defaults: pan -170° to 170°, tilt -20° to 90°, zoom 1 to 10, starting position `{ pan: 0, tilt: 0, zoom: 1 }`.
|
|
92
|
+
- Optional Identify cluster support, with configurable identify time and type. Set to Identify.IdentifyType.None to omit the cluster entirely.
|
|
93
|
+
- Configurable Power Source cluster type: Rechargeable, Replaceable, Battery, Wired, or None to omit the Power Source cluster entirely.
|
|
94
|
+
|
|
83
95
|
### Snapshot Camera
|
|
84
96
|
|
|
85
97
|
Features:
|
|
@@ -117,6 +129,15 @@ Features:
|
|
|
117
129
|
- Configurable Power Source cluster type on the root endpoint: Rechargeable, Replaceable, Battery, Wired, or None to omit the Power Source cluster entirely.
|
|
118
130
|
- The Camera child endpoint's Identify and CameraAvStreamManagement configuration can be customized via the `cameraOptions` constructor option, using the same fields and defaults as the standalone Camera device. The mandatory light's name, tagList, and initial state can be customized via the `lightOptions` constructor option.
|
|
119
131
|
|
|
132
|
+
### Video Doorbell
|
|
133
|
+
|
|
134
|
+
Features:
|
|
135
|
+
|
|
136
|
+
- A composite device type, always defined via endpoint composition: the root endpoint exposes Basic Information and, unless disabled, a Power Source cluster; the mandatory Camera child endpoint and the mandatory Doorbell child endpoint required by the Matter specification for this device type are both created automatically by the constructor. The Camera child is wired the same way as the standalone Camera device (CameraAvStreamManagement with the Video, Audio, Snapshot and ImageControl features, and the WebRtcTransportProvider cluster and WebRtcTransportRequestor client). The Doorbell child is wired the same way as the standalone Doorbell device (Switch cluster with the MomentarySwitch feature only, Identify cluster always created, and the required Chime client cluster added automatically via `addChimeClient`).
|
|
137
|
+
- Exposes `addDoorbell()` to add further Doorbell child endpoints beyond the mandatory one, with an optional tagList for disambiguation when more than one doorbell is present.
|
|
138
|
+
- Configurable Power Source cluster type on the root endpoint: Rechargeable, Replaceable, Battery, Wired, or None to omit the Power Source cluster entirely.
|
|
139
|
+
- The Camera child endpoint's Identify and CameraAvStreamManagement configuration can be customized via the `cameraOptions` constructor option, using the same fields and defaults as the standalone Camera device. The mandatory doorbell's name, tagList, and identify configuration can be customized via the `doorbellOptions` constructor option.
|
|
140
|
+
|
|
120
141
|
### Intercom
|
|
121
142
|
|
|
122
143
|
Features:
|
|
@@ -219,6 +240,12 @@ The fix is on the browser side, not in this plugin: disable mDNS obfuscation of
|
|
|
219
240
|
- **Chrome**: the same flag is at `chrome://flags/#enable-webrtc-hide-local-ips-with-mdns`.
|
|
220
241
|
- **Firefox**: open `about:config` and set `media.peerconnection.ice.obfuscate_host_addresses` to `false`. Note this alone may not be enough — per the Firefox limitation above, Firefox can still fall back to a useless link-local address on a non-secure-context page even with this preference disabled, so the page also needs to be served over HTTPS or via `localhost`.
|
|
221
242
|
|
|
243
|
+
### Known limitation: a client with an unreachable network interface can slow down ICE negotiation logging
|
|
244
|
+
|
|
245
|
+
A browser gathers one host ICE candidate per local network interface it sees, mDNS-obfuscated or not. When one of those interfaces has no multicast route to the machine running Matterbridge — a disconnected VPN adapter, a Hyper-V/WSL virtual switch, a second NIC on an unrelated subnet — werift-ice's mDNS resolution for that candidate's `*.local` name can never succeed, and takes the full per-candidate apply timeout (5s, see `ICE_CANDIDATE_APPLY_TIMEOUT_MS` in `src/behaviors/webRtcTransportProviderServer.ts`) to give up on it.
|
|
246
|
+
|
|
247
|
+
Candidates are applied concurrently, not one after another, so this doesn't compound: a candidate on a reachable interface succeeds in a few milliseconds without waiting behind a sibling candidate that's doomed to time out. `provideIceCandidates` also responds to the peer as soon as the candidates are recorded, rather than waiting for their application to finish — the same reason `SolicitOffer`/`ProvideOffer` already invoke Offer/Answer on the peer without blocking their own response — so an unreachable interface no longer delays the Matter command itself, only the background log entry for that specific candidate. If a stream is slow to start or intermittently fails specifically on a machine with multiple network interfaces/VPNs, this is the mechanism to check first (grep the Matterbridge log for `ICE candidate apply timeout`).
|
|
248
|
+
|
|
222
249
|
## Werift integration test
|
|
223
250
|
|
|
224
251
|
The `vitest/werift.test.ts` integration test creates local client and server peers and verifies SDP offer/answer negotiation, ICE candidate exchange, a bidirectional data-channel transfer, and connection teardown with `werift`.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MatterbridgeServer } from 'matterbridge/behaviors';
|
|
2
|
+
import { CameraAvSettingsUserLevelManagementServer } from 'matterbridge/matter/behaviors';
|
|
3
|
+
import { CameraAvSettingsUserLevelManagement } from 'matterbridge/matter/clusters';
|
|
4
|
+
import { Status, StatusResponseError } from 'matterbridge/matter/types';
|
|
5
|
+
function clamp(value, min, max) {
|
|
6
|
+
return Math.min(Math.max(value, min), max);
|
|
7
|
+
}
|
|
8
|
+
export class MatterbridgeCameraAvSettingsUserLevelManagementServer extends CameraAvSettingsUserLevelManagementServer.with(CameraAvSettingsUserLevelManagement.Feature.MechanicalPan, CameraAvSettingsUserLevelManagement.Feature.MechanicalTilt, CameraAvSettingsUserLevelManagement.Feature.MechanicalZoom) {
|
|
9
|
+
mptzSetPosition(request) {
|
|
10
|
+
const device = this.endpoint.stateOf(MatterbridgeServer);
|
|
11
|
+
const { pan, tilt, zoom } = request;
|
|
12
|
+
if (pan !== undefined && (pan < this.state.panMin || pan > this.state.panMax)) {
|
|
13
|
+
throw new StatusResponseError(`Pan ${pan} is outside of the supported range [${this.state.panMin}, ${this.state.panMax}]`, Status.ConstraintError);
|
|
14
|
+
}
|
|
15
|
+
if (tilt !== undefined && (tilt < this.state.tiltMin || tilt > this.state.tiltMax)) {
|
|
16
|
+
throw new StatusResponseError(`Tilt ${tilt} is outside of the supported range [${this.state.tiltMin}, ${this.state.tiltMax}]`, Status.ConstraintError);
|
|
17
|
+
}
|
|
18
|
+
if (zoom !== undefined && (zoom < 1 || zoom > this.state.zoomMax)) {
|
|
19
|
+
throw new StatusResponseError(`Zoom ${zoom} is outside of the supported range [1, ${this.state.zoomMax}]`, Status.ConstraintError);
|
|
20
|
+
}
|
|
21
|
+
this.state.mptzPosition = {
|
|
22
|
+
pan: pan ?? this.state.mptzPosition.pan,
|
|
23
|
+
tilt: tilt ?? this.state.mptzPosition.tilt,
|
|
24
|
+
zoom: zoom ?? this.state.mptzPosition.zoom,
|
|
25
|
+
};
|
|
26
|
+
device.log.info(`Set mechanical PTZ position to pan ${this.state.mptzPosition.pan}°, tilt ${this.state.mptzPosition.tilt}°, zoom ${this.state.mptzPosition.zoom} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
|
|
27
|
+
}
|
|
28
|
+
mptzRelativeMove(request) {
|
|
29
|
+
const device = this.endpoint.stateOf(MatterbridgeServer);
|
|
30
|
+
const current = this.state.mptzPosition;
|
|
31
|
+
const pan = request.panDelta === undefined ? current.pan : clamp((current.pan ?? 0) + request.panDelta, this.state.panMin, this.state.panMax);
|
|
32
|
+
const tilt = request.tiltDelta === undefined ? current.tilt : clamp((current.tilt ?? 0) + request.tiltDelta, this.state.tiltMin, this.state.tiltMax);
|
|
33
|
+
const zoom = request.zoomDelta === undefined ? current.zoom : clamp((current.zoom ?? 1) + request.zoomDelta, 1, this.state.zoomMax);
|
|
34
|
+
this.state.mptzPosition = { pan, tilt, zoom };
|
|
35
|
+
device.log.info(`Moved mechanical PTZ position by pan ${request.panDelta ?? 0}°, tilt ${request.tiltDelta ?? 0}°, zoom ${request.zoomDelta ?? 0} to pan ${pan}°, tilt ${tilt}°, zoom ${zoom} (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -218,27 +218,36 @@ export class MatterbridgeWebRtcTransportProviderServer extends WebRtcTransportPr
|
|
|
218
218
|
if (!this.state.currentSessions.some((session) => session.id === request.webRtcSessionId)) {
|
|
219
219
|
throw new StatusResponseError(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: webRTC session ${request.webRtcSessionId} is not present in currentSessions`, Status.NotFound);
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
const endpointLabel = `${this.endpoint.maybeId}.${this.endpoint.maybeNumber}`;
|
|
222
|
+
device.log.info(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: received ${request.iceCandidates.length} ICE candidate(s) for session ${request.webRtcSessionId} (endpoint ${endpointLabel})`);
|
|
222
223
|
const webRtcPeer = this.internal.sessions.get(request.webRtcSessionId);
|
|
223
224
|
if (webRtcPeer) {
|
|
224
|
-
|
|
225
|
+
void Promise.allSettled(request.iceCandidates.map(async (candidate, index) => {
|
|
225
226
|
const startedAt = Date.now();
|
|
226
227
|
device.log.debug(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: applying ICE candidate ${index + 1}/${request.iceCandidates.length} for session ${request.webRtcSessionId} ` +
|
|
227
228
|
`(mid=${candidate.sdpMid ?? 'null'}, mLine=${candidate.sdpmLineIndex ?? 'null'}, endOfCandidates=${candidate.candidate.trim() === ''}) ` +
|
|
228
|
-
`(endpoint ${
|
|
229
|
+
`(endpoint ${endpointLabel})`);
|
|
229
230
|
try {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
let timeout;
|
|
232
|
+
try {
|
|
233
|
+
await Promise.race([
|
|
234
|
+
webRtcPeer.addIceCandidate(candidate.candidate, candidate.sdpMid, candidate.sdpmLineIndex),
|
|
235
|
+
new Promise((resolve, reject) => {
|
|
236
|
+
timeout = setTimeout(() => reject(new Error(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: ICE candidate apply timeout after ${ICE_CANDIDATE_APPLY_TIMEOUT_MS}ms`)), ICE_CANDIDATE_APPLY_TIMEOUT_MS);
|
|
237
|
+
}),
|
|
238
|
+
]);
|
|
239
|
+
}
|
|
240
|
+
finally {
|
|
241
|
+
clearTimeout(timeout);
|
|
242
|
+
}
|
|
234
243
|
device.log.debug(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: applied ICE candidate ${index + 1}/${request.iceCandidates.length} for session ${request.webRtcSessionId} ` +
|
|
235
|
-
`in ${Date.now() - startedAt}ms (endpoint ${
|
|
244
|
+
`in ${Date.now() - startedAt}ms (endpoint ${endpointLabel})`);
|
|
236
245
|
}
|
|
237
246
|
catch (error) {
|
|
238
247
|
device.log.warn(`MatterbridgeWebRtcTransportProviderServer.provideIceCandidates: failed ICE candidate ${index + 1}/${request.iceCandidates.length} for session ${request.webRtcSessionId} after ${Date.now() - startedAt}ms ` +
|
|
239
|
-
`(endpoint ${
|
|
248
|
+
`(endpoint ${endpointLabel}): ${String(error)}`);
|
|
240
249
|
}
|
|
241
|
-
}
|
|
250
|
+
}));
|
|
242
251
|
}
|
|
243
252
|
}
|
|
244
253
|
async endSession(request) {
|
package/dist/devices/camera.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { camera, MatterbridgeEndpoint, powerSource } from 'matterbridge';
|
|
2
|
-
import { CameraAvStreamManagement, Identify } from 'matterbridge/matter/clusters';
|
|
2
|
+
import { CameraAvSettingsUserLevelManagement, CameraAvStreamManagement, Identify } from 'matterbridge/matter/clusters';
|
|
3
3
|
import { StreamUsage, ThreeLevelAuto } from 'matterbridge/matter/types';
|
|
4
|
+
import { MatterbridgeCameraAvSettingsUserLevelManagementServer } from '../behaviors/cameraAvSettingsUserLevelManagementServer.js';
|
|
4
5
|
import { MatterbridgeCameraAvStreamManagementServer } from '../behaviors/cameraAvStreamManagementServer.js';
|
|
5
6
|
import { addWebRtcTransportRequestorClient } from '../behaviors/clients.js';
|
|
6
7
|
import { MatterbridgeWebRtcTransportProviderServer } from '../behaviors/webRtcTransportProviderServer.js';
|
|
7
8
|
export class Camera extends MatterbridgeEndpoint {
|
|
8
9
|
constructor(name, serial, options = {}) {
|
|
9
|
-
const { identifyTime = 0, identifyType = Identify.IdentifyType.None, powerSourceType = 'Wired', maxContentBufferSize = 4_194_304, maxNetworkBandwidth = 10_000_000, supportedStreamUsages = [StreamUsage.LiveView, StreamUsage.Recording], streamUsagePriorities = supportedStreamUsages, maxConcurrentEncoders = 1, maxEncodedPixelRate = 1920 * 1080 * 30, videoSensorParams = { sensorWidth: 1920, sensorHeight: 1080, maxFps: 30 }, minViewportResolution = { width: 640, height: 360 }, rateDistortionTradeOffPoints = [{ codec: CameraAvStreamManagement.VideoCodec.H264, resolution: { width: 1920, height: 1080 }, minBitRate: 1_000_000 }], currentFrameRate = 30, viewport = { x1: 0, y1: 0, x2: videoSensorParams.sensorWidth, y2: videoSensorParams.sensorHeight }, microphoneCapabilities = { maxNumberOfChannels: 1, supportedCodecs: [CameraAvStreamManagement.AudioCodec.Opus], supportedSampleRates: [48000], supportedBitDepths: [16] }, snapshotCapabilities = [
|
|
10
|
+
const { identifyTime = 0, identifyType = Identify.IdentifyType.None, powerSourceType = 'Wired', ptz = false, maxContentBufferSize = 4_194_304, maxNetworkBandwidth = 10_000_000, supportedStreamUsages = [StreamUsage.LiveView, StreamUsage.Recording], streamUsagePriorities = supportedStreamUsages, maxConcurrentEncoders = 1, maxEncodedPixelRate = 1920 * 1080 * 30, videoSensorParams = { sensorWidth: 1920, sensorHeight: 1080, maxFps: 30 }, minViewportResolution = { width: 640, height: 360 }, rateDistortionTradeOffPoints = [{ codec: CameraAvStreamManagement.VideoCodec.H264, resolution: { width: 1920, height: 1080 }, minBitRate: 1_000_000 }], currentFrameRate = 30, viewport = { x1: 0, y1: 0, x2: videoSensorParams.sensorWidth, y2: videoSensorParams.sensorHeight }, microphoneCapabilities = { maxNumberOfChannels: 1, supportedCodecs: [CameraAvStreamManagement.AudioCodec.Opus], supportedSampleRates: [48000], supportedBitDepths: [16] }, snapshotCapabilities = [
|
|
10
11
|
{ resolution: { width: 640, height: 480 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
11
12
|
{ resolution: { width: 1280, height: 720 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
12
13
|
{ resolution: { width: 1920, height: 1080 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
13
|
-
], allocatedSnapshotStreams = [], id, number, tagList, mode, } = options;
|
|
14
|
+
], allocatedSnapshotStreams = [], panMin = -170, panMax = 170, tiltMin = -20, tiltMax = 90, zoomMax = 10, mptzPosition = { pan: 0, tilt: 0, zoom: 1 }, id, number, tagList, mode, } = options;
|
|
14
15
|
super(powerSourceType === 'None' ? [camera] : [camera, powerSource], { id: id ?? `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}`, number, tagList, mode });
|
|
15
16
|
if (identifyType !== Identify.IdentifyType.None) {
|
|
16
17
|
this.createDefaultIdentifyClusterServer(identifyTime, identifyType);
|
|
@@ -49,6 +50,8 @@ export class Camera extends MatterbridgeEndpoint {
|
|
|
49
50
|
snapshotCapabilities,
|
|
50
51
|
allocatedSnapshotStreams,
|
|
51
52
|
});
|
|
53
|
+
if (ptz)
|
|
54
|
+
createDefaultCameraAvSettingsUserLevelManagementClusterServer(this, { panMin, panMax, tiltMin, tiltMax, zoomMax, mptzPosition });
|
|
52
55
|
createDefaultWebRtcTransportProviderClusterServer(this);
|
|
53
56
|
addWebRtcTransportRequestorClient(this);
|
|
54
57
|
this.addRequiredClusters();
|
|
@@ -73,6 +76,13 @@ export function createDefaultCameraAvStreamManagementClusterServer(endpoint, opt
|
|
|
73
76
|
});
|
|
74
77
|
return endpoint;
|
|
75
78
|
}
|
|
79
|
+
export function createDefaultCameraAvSettingsUserLevelManagementClusterServer(endpoint, options) {
|
|
80
|
+
endpoint.behaviors.require(MatterbridgeCameraAvSettingsUserLevelManagementServer.with(CameraAvSettingsUserLevelManagement.Feature.MechanicalPan, CameraAvSettingsUserLevelManagement.Feature.MechanicalTilt, CameraAvSettingsUserLevelManagement.Feature.MechanicalZoom), {
|
|
81
|
+
...options,
|
|
82
|
+
movementState: CameraAvSettingsUserLevelManagement.PhysicalMovement.Idle,
|
|
83
|
+
});
|
|
84
|
+
return endpoint;
|
|
85
|
+
}
|
|
76
86
|
export function createDefaultWebRtcTransportProviderClusterServer(endpoint) {
|
|
77
87
|
endpoint.behaviors.require(MatterbridgeWebRtcTransportProviderServer, { currentSessions: [] });
|
|
78
88
|
return endpoint;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { camera, doorbell, MatterbridgeEndpoint, powerSource, videoDoorbell } from 'matterbridge';
|
|
2
|
+
import { CameraAvStreamManagement, Identify } from 'matterbridge/matter/clusters';
|
|
3
|
+
import { StreamUsage } from 'matterbridge/matter/types';
|
|
4
|
+
import { fireAndForget } from 'matterbridge/utils';
|
|
5
|
+
import { addChimeClient, addWebRtcTransportRequestorClient } from '../behaviors/clients.js';
|
|
6
|
+
import { createDefaultCameraAvStreamManagementClusterServer, createDefaultWebRtcTransportProviderClusterServer } from './camera.js';
|
|
7
|
+
export class VideoDoorbell extends MatterbridgeEndpoint {
|
|
8
|
+
constructor(name, serial, options = {}) {
|
|
9
|
+
const { powerSourceType = 'Wired', cameraOptions = {}, doorbellOptions = {}, id, number, tagList, mode } = options;
|
|
10
|
+
super(powerSourceType === 'None' ? [videoDoorbell] : [videoDoorbell, powerSource], {
|
|
11
|
+
id: id ?? `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}`,
|
|
12
|
+
number,
|
|
13
|
+
tagList,
|
|
14
|
+
mode,
|
|
15
|
+
});
|
|
16
|
+
this.createDefaultBasicInformationClusterServer(name, serial, 0xfff1, 'Matterbridge', 0x8000, 'Matterbridge Video Doorbell');
|
|
17
|
+
switch (powerSourceType) {
|
|
18
|
+
case 'Rechargeable':
|
|
19
|
+
this.createDefaultPowerSourceRechargeableBatteryClusterServer();
|
|
20
|
+
break;
|
|
21
|
+
case 'Replaceable':
|
|
22
|
+
this.createDefaultPowerSourceReplaceableBatteryClusterServer();
|
|
23
|
+
break;
|
|
24
|
+
case 'Battery':
|
|
25
|
+
this.createDefaultPowerSourceBatteryClusterServer();
|
|
26
|
+
break;
|
|
27
|
+
case 'Wired':
|
|
28
|
+
this.createDefaultPowerSourceWiredClusterServer();
|
|
29
|
+
break;
|
|
30
|
+
case 'None':
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
fireAndForget(this.addFixedLabel('composed', 'VideoDoorbell'), this.log, 'Error adding composed label to video doorbell');
|
|
34
|
+
this.addRequiredClusters();
|
|
35
|
+
const { identifyTime: cameraIdentifyTime = 0, identifyType: cameraIdentifyType = Identify.IdentifyType.None, maxContentBufferSize = 4_194_304, maxNetworkBandwidth = 10_000_000, supportedStreamUsages = [StreamUsage.LiveView, StreamUsage.Recording], streamUsagePriorities = supportedStreamUsages, maxConcurrentEncoders = 1, maxEncodedPixelRate = 1920 * 1080 * 30, videoSensorParams = { sensorWidth: 1920, sensorHeight: 1080, maxFps: 30 }, minViewportResolution = { width: 640, height: 360 }, rateDistortionTradeOffPoints = [{ codec: CameraAvStreamManagement.VideoCodec.H264, resolution: { width: 1920, height: 1080 }, minBitRate: 1_000_000 }], currentFrameRate = 30, viewport = { x1: 0, y1: 0, x2: videoSensorParams.sensorWidth, y2: videoSensorParams.sensorHeight }, microphoneCapabilities = { maxNumberOfChannels: 1, supportedCodecs: [CameraAvStreamManagement.AudioCodec.Opus], supportedSampleRates: [48000], supportedBitDepths: [16] }, snapshotCapabilities = [
|
|
36
|
+
{ resolution: { width: 640, height: 480 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
37
|
+
{ resolution: { width: 1280, height: 720 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
38
|
+
{ resolution: { width: 1920, height: 1080 }, maxFrameRate: 10, imageCodec: CameraAvStreamManagement.ImageCodec.Jpeg, requiresEncodedPixels: false },
|
|
39
|
+
], allocatedSnapshotStreams = [], } = cameraOptions;
|
|
40
|
+
const cameraChild = this.addChildDeviceType('Camera', camera, {});
|
|
41
|
+
cameraChild.log.logName = 'Camera';
|
|
42
|
+
if (cameraIdentifyType !== Identify.IdentifyType.None) {
|
|
43
|
+
cameraChild.createDefaultIdentifyClusterServer(cameraIdentifyTime, cameraIdentifyType);
|
|
44
|
+
}
|
|
45
|
+
createDefaultCameraAvStreamManagementClusterServer(cameraChild, {
|
|
46
|
+
maxContentBufferSize,
|
|
47
|
+
maxNetworkBandwidth,
|
|
48
|
+
supportedStreamUsages,
|
|
49
|
+
streamUsagePriorities,
|
|
50
|
+
maxConcurrentEncoders,
|
|
51
|
+
maxEncodedPixelRate,
|
|
52
|
+
videoSensorParams,
|
|
53
|
+
minViewportResolution,
|
|
54
|
+
rateDistortionTradeOffPoints,
|
|
55
|
+
currentFrameRate,
|
|
56
|
+
viewport,
|
|
57
|
+
microphoneCapabilities,
|
|
58
|
+
snapshotCapabilities,
|
|
59
|
+
allocatedSnapshotStreams,
|
|
60
|
+
});
|
|
61
|
+
createDefaultWebRtcTransportProviderClusterServer(cameraChild);
|
|
62
|
+
addWebRtcTransportRequestorClient(cameraChild);
|
|
63
|
+
cameraChild.addRequiredClusters();
|
|
64
|
+
const { name: doorbellName = 'Doorbell', tagList: doorbellTagList = [], identifyTime = 0, identifyType = Identify.IdentifyType.None } = doorbellOptions;
|
|
65
|
+
this.addDoorbell(doorbellName, doorbellTagList, identifyTime, identifyType);
|
|
66
|
+
}
|
|
67
|
+
addDoorbell(name, tagList = [], identifyTime = 0, identifyType = Identify.IdentifyType.None) {
|
|
68
|
+
const doorbellChild = this.addChildDeviceType(name, doorbell, tagList.length > 0 ? { tagList } : {});
|
|
69
|
+
doorbellChild.log.logName = name;
|
|
70
|
+
doorbellChild.createDefaultIdentifyClusterServer(identifyTime, identifyType);
|
|
71
|
+
doorbellChild.createDefaultMomentarySwitchClusterServer();
|
|
72
|
+
addChimeClient(doorbellChild);
|
|
73
|
+
doorbellChild.addRequiredClusters();
|
|
74
|
+
return doorbellChild;
|
|
75
|
+
}
|
|
76
|
+
}
|
package/dist/module.js
CHANGED
|
@@ -3,8 +3,10 @@ import { inspect } from 'node:util';
|
|
|
3
3
|
import { MatterbridgeDynamicPlatform } from 'matterbridge';
|
|
4
4
|
import { MatterbridgeBindingServer } from 'matterbridge/behaviors';
|
|
5
5
|
import { RESET } from 'matterbridge/logger';
|
|
6
|
+
import { UINT16_MAX, UINT32_MAX } from 'matterbridge/matter';
|
|
6
7
|
import { ChimeClient } from 'matterbridge/matter/behaviors';
|
|
7
8
|
import { Identify, Chime as ChimeCluster, PowerSource } from 'matterbridge/matter/clusters';
|
|
9
|
+
import { isValidNumber, parseVersionString } from 'matterbridge/utils';
|
|
8
10
|
import { AudioDoorbell } from './devices/audioDoorbell.js';
|
|
9
11
|
import { Camera } from './devices/camera.js';
|
|
10
12
|
import { Chime } from './devices/chime.js';
|
|
@@ -12,6 +14,7 @@ import { Doorbell } from './devices/doorbell.js';
|
|
|
12
14
|
import { FloodlightCamera } from './devices/floodlightCamera.js';
|
|
13
15
|
import { Intercom } from './devices/intercom.js';
|
|
14
16
|
import { SnapshotCamera } from './devices/snapshotCamera.js';
|
|
17
|
+
import { VideoDoorbell } from './devices/videoDoorbell.js';
|
|
15
18
|
export default function initializePlugin(matterbridge, log, config) {
|
|
16
19
|
return new ExampleMatterbridgeCameraPlatform(matterbridge, log, config);
|
|
17
20
|
}
|
|
@@ -87,6 +90,13 @@ export class ExampleMatterbridgeCameraPlatform extends MatterbridgeDynamicPlatfo
|
|
|
87
90
|
await this.addDevice(exampleSnapshotCamera);
|
|
88
91
|
const exampleCamera = new Camera('Camera', 'CAMERA-001');
|
|
89
92
|
await this.addDevice(exampleCamera);
|
|
93
|
+
const examplePtzCamera = new Camera('PTZ Camera', 'PTZCAMERA-001', {
|
|
94
|
+
identifyTime: 5,
|
|
95
|
+
identifyType: Identify.IdentifyType.VisibleIndicator,
|
|
96
|
+
powerSourceType: 'Wired',
|
|
97
|
+
ptz: true,
|
|
98
|
+
});
|
|
99
|
+
await this.addDevice(examplePtzCamera);
|
|
90
100
|
const exampleFloodlightCamera = new FloodlightCamera('Floodlight Camera', 'FLOODLIGHTCAMERA-001', {
|
|
91
101
|
powerSourceType: 'Wired',
|
|
92
102
|
cameraOptions: { identifyTime: 5, identifyType: Identify.IdentifyType.VisibleIndicator },
|
|
@@ -99,6 +109,11 @@ export class ExampleMatterbridgeCameraPlatform extends MatterbridgeDynamicPlatfo
|
|
|
99
109
|
powerSourceType: 'Replaceable',
|
|
100
110
|
});
|
|
101
111
|
await this.addDevice(exampleIntercom1);
|
|
112
|
+
const exampleVideoDoorbell = new VideoDoorbell('Video Doorbell', 'VIDEODOORBELL-001', {
|
|
113
|
+
powerSourceType: 'Wired',
|
|
114
|
+
cameraOptions: { identifyTime: 5, identifyType: Identify.IdentifyType.VisibleIndicator },
|
|
115
|
+
});
|
|
116
|
+
await this.addDevice(exampleVideoDoorbell);
|
|
102
117
|
const serverChime = new Chime('Server Chime', 'SERVER-CHIME-001', {
|
|
103
118
|
identifyTime: 5,
|
|
104
119
|
identifyType: Identify.IdentifyType.AudibleBeep,
|
|
@@ -142,6 +157,14 @@ export class ExampleMatterbridgeCameraPlatform extends MatterbridgeDynamicPlatfo
|
|
|
142
157
|
}
|
|
143
158
|
async addDevice(device) {
|
|
144
159
|
if (device.serialNumber && device.deviceName) {
|
|
160
|
+
device.softwareVersion = parseVersionString(this.version);
|
|
161
|
+
device.softwareVersionString = this.version === '' ? 'Unknown' : this.version;
|
|
162
|
+
device.hardwareVersion = parseVersionString(this.matterbridge.matterbridgeVersion);
|
|
163
|
+
device.hardwareVersionString = this.matterbridge.matterbridgeVersion;
|
|
164
|
+
device.softwareVersion = isValidNumber(device.softwareVersion, 0, UINT32_MAX) ? device.softwareVersion : undefined;
|
|
165
|
+
device.softwareVersionString = device.softwareVersionString.slice(0, 64);
|
|
166
|
+
device.hardwareVersion = isValidNumber(device.hardwareVersion, 0, UINT16_MAX) ? device.hardwareVersion : undefined;
|
|
167
|
+
device.hardwareVersionString = device.hardwareVersionString.slice(0, 64);
|
|
145
168
|
this.setSelectDevice(device.serialNumber, device.deviceName);
|
|
146
169
|
if (this.validateDevice([device.deviceName, device.serialNumber]))
|
|
147
170
|
await this.registerDevice(device);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-camera",
|
|
3
|
-
"version": "0.0.7
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-camera",
|
|
9
|
-
"version": "0.0.7
|
|
9
|
+
"version": "0.0.7",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.3.0",
|
|
13
13
|
"node-persist-manager": "2.1.0",
|
|
14
|
-
"werift": "0.
|
|
14
|
+
"werift": "0.24.1"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0"
|
|
@@ -266,6 +266,21 @@
|
|
|
266
266
|
"resolved": "https://registry.npmjs.org/@shinyoshiaki/jspack/-/jspack-0.0.6.tgz",
|
|
267
267
|
"integrity": "sha512-SdsNhLjQh4onBlyPrn4ia1Pdx5bXT88G/LIEpOYAjx2u4xeY/m/HB5yHqlkJB1uQR3Zw4R3hBWLj46STRAN0rg=="
|
|
268
268
|
},
|
|
269
|
+
"node_modules/@types/dom-mediacapture-transform": {
|
|
270
|
+
"version": "0.1.12",
|
|
271
|
+
"resolved": "https://registry.npmjs.org/@types/dom-mediacapture-transform/-/dom-mediacapture-transform-0.1.12.tgz",
|
|
272
|
+
"integrity": "sha512-d7/QsLRwF864A5mgIM/YrfiglHoYn7zgCcAoJgW404r+2DwnNr7EBbLnCWpmOMgH8y0te73L1AV6H1bmauaWFw==",
|
|
273
|
+
"license": "MIT",
|
|
274
|
+
"dependencies": {
|
|
275
|
+
"@types/dom-webcodecs": "*"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"node_modules/@types/dom-webcodecs": {
|
|
279
|
+
"version": "0.1.13",
|
|
280
|
+
"resolved": "https://registry.npmjs.org/@types/dom-webcodecs/-/dom-webcodecs-0.1.13.tgz",
|
|
281
|
+
"integrity": "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==",
|
|
282
|
+
"license": "MIT"
|
|
283
|
+
},
|
|
269
284
|
"node_modules/aes-js": {
|
|
270
285
|
"version": "3.1.2",
|
|
271
286
|
"resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz",
|
|
@@ -384,12 +399,6 @@
|
|
|
384
399
|
"node": ">=6"
|
|
385
400
|
}
|
|
386
401
|
},
|
|
387
|
-
"node_modules/fast-deep-equal": {
|
|
388
|
-
"version": "3.1.3",
|
|
389
|
-
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
|
390
|
-
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
|
391
|
-
"license": "MIT"
|
|
392
|
-
},
|
|
393
402
|
"node_modules/generate-function": {
|
|
394
403
|
"version": "2.3.1",
|
|
395
404
|
"resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
|
|
@@ -420,9 +429,9 @@
|
|
|
420
429
|
"license": "BSD-3-Clause"
|
|
421
430
|
},
|
|
422
431
|
"node_modules/int64-buffer": {
|
|
423
|
-
"version": "1.1.
|
|
424
|
-
"resolved": "https://registry.npmjs.org/int64-buffer/-/int64-buffer-1.1.
|
|
425
|
-
"integrity": "sha512-
|
|
432
|
+
"version": "1.1.1",
|
|
433
|
+
"resolved": "https://registry.npmjs.org/int64-buffer/-/int64-buffer-1.1.1.tgz",
|
|
434
|
+
"integrity": "sha512-xp/v0/im2q7n7ISFJXcYsr/aVsUdZKPUZS1uYtoM9I9Cfmm5YuAi7SQts2TrEXwAKIE0wyn3KxJbo35goJgvwQ==",
|
|
426
435
|
"license": "MIT"
|
|
427
436
|
},
|
|
428
437
|
"node_modules/ip": {
|
|
@@ -464,6 +473,24 @@
|
|
|
464
473
|
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
|
|
465
474
|
"license": "MIT"
|
|
466
475
|
},
|
|
476
|
+
"node_modules/mediabunny": {
|
|
477
|
+
"version": "1.51.0",
|
|
478
|
+
"resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.51.0.tgz",
|
|
479
|
+
"integrity": "sha512-u327374xU8Ho0gCaMII7fUK8t0PnqkabCox1k8uUwvgvGb9o6YQGZEG2Qr4DTe7nTMpzfL7ukgnHDvDROySZ+Q==",
|
|
480
|
+
"license": "MPL-2.0",
|
|
481
|
+
"workspaces": [
|
|
482
|
+
".",
|
|
483
|
+
"packages/*"
|
|
484
|
+
],
|
|
485
|
+
"dependencies": {
|
|
486
|
+
"@types/dom-mediacapture-transform": "^0.1.11",
|
|
487
|
+
"@types/dom-webcodecs": "0.1.13"
|
|
488
|
+
},
|
|
489
|
+
"funding": {
|
|
490
|
+
"type": "individual",
|
|
491
|
+
"url": "https://github.com/sponsors/Vanilagy"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
467
494
|
"node_modules/mp4box": {
|
|
468
495
|
"version": "0.5.4",
|
|
469
496
|
"resolved": "https://registry.npmjs.org/mp4box/-/mp4box-0.5.4.tgz",
|
|
@@ -634,24 +661,18 @@
|
|
|
634
661
|
"license": "Unlicense"
|
|
635
662
|
},
|
|
636
663
|
"node_modules/werift": {
|
|
637
|
-
"version": "0.
|
|
638
|
-
"resolved": "https://registry.npmjs.org/werift/-/werift-0.
|
|
639
|
-
"integrity": "sha512
|
|
664
|
+
"version": "0.24.1",
|
|
665
|
+
"resolved": "https://registry.npmjs.org/werift/-/werift-0.24.1.tgz",
|
|
666
|
+
"integrity": "sha512-8Mpf0FWO2pkd9UQyZ0Hb1CcimydlNh8KCvZGD2X/D0ucVY6ubJxX91cndOpTOnPA7wleopop044VSNZeCEwgeA==",
|
|
640
667
|
"license": "MIT",
|
|
641
668
|
"dependencies": {
|
|
642
669
|
"@fidm/x509": "^1.2.1",
|
|
643
|
-
"@minhducsun2002/leb128": "^1.0.0",
|
|
644
670
|
"@noble/curves": "^1.8.1",
|
|
645
671
|
"@peculiar/x509": "^1.12.3",
|
|
646
672
|
"@shinyoshiaki/binary-data": "^0.6.1",
|
|
647
|
-
"@shinyoshiaki/jspack": "^0.0.6",
|
|
648
|
-
"aes-js": "^3.1.2",
|
|
649
673
|
"buffer": "^6.0.3",
|
|
650
674
|
"debug": "4.4.0",
|
|
651
|
-
"
|
|
652
|
-
"int64-buffer": "1.1.0",
|
|
653
|
-
"ip": "^2.0.1",
|
|
654
|
-
"mp4box": "^0.5.3",
|
|
675
|
+
"mediabunny": "^1.45.2",
|
|
655
676
|
"multicast-dns": "^7.2.5",
|
|
656
677
|
"tweetnacl": "^1.0.3",
|
|
657
678
|
"werift-common": "*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-camera",
|
|
3
|
-
"version": "0.0.7
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Matterbridge camera example plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"node-ansi-logger": "3.3.0",
|
|
71
71
|
"node-persist-manager": "2.1.0",
|
|
72
|
-
"werift": "0.
|
|
72
|
+
"werift": "0.24.1"
|
|
73
73
|
}
|
|
74
74
|
}
|