mipc-camera-client-local 0.2.0__tar.gz
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.
- mipc_camera_client_local-0.2.0/LICENSE +11 -0
- mipc_camera_client_local-0.2.0/PKG-INFO +269 -0
- mipc_camera_client_local-0.2.0/README.md +236 -0
- mipc_camera_client_local-0.2.0/docs/ANDROID.md +66 -0
- mipc_camera_client_local-0.2.0/docs/API.md +454 -0
- mipc_camera_client_local-0.2.0/docs/HARDWARE.md +115 -0
- mipc_camera_client_local-0.2.0/docs/PROTOCOL.md +118 -0
- mipc_camera_client_local-0.2.0/docs/RELEASING.md +55 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/__init__.py +322 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/audio.py +163 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/capabilities.py +31 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/catalog.py +10 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/cli.py +239 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/crypto_helpers.py +182 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/device_settings.py +84 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/endpoints.json +4916 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/events.py +124 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/operations.py +688 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/profiles.py +40 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/py.typed +1 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/settings.py +384 -0
- mipc_camera_client_local-0.2.0/mipc_camera_client_local/sync.py +12 -0
- mipc_camera_client_local-0.2.0/pyproject.toml +62 -0
- mipc_camera_client_local-0.2.0/tools/check_distribution.py +45 -0
- mipc_camera_client_local-0.2.0/tools/inventory_client.py +60 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2024 Pan Maruda panmaruda@protonmail.com
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mipc-camera-client-local
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Independent local MIPC camera client with settings, events, PTZ and speaker audio
|
|
5
|
+
License-Expression: BSD-3-Clause
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: mipc,camera,local,rtmp,ptz,home-assistant
|
|
8
|
+
Author: Pan Maruda
|
|
9
|
+
Author-email: panmaruda@protonmail.com
|
|
10
|
+
Maintainer: brylee123
|
|
11
|
+
Requires-Python: >=3.10,<4.0
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Multimedia :: Video
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Classifier: Intended Audience :: Developers
|
|
23
|
+
Provides-Extra: audio
|
|
24
|
+
Requires-Dist: av (>=16,<20) ; extra == "audio"
|
|
25
|
+
Requires-Dist: json5 (>=0.9.14,<0.10)
|
|
26
|
+
Requires-Dist: pycryptodome (>=3.18.0,<4.0)
|
|
27
|
+
Requires-Dist: requests (>=2.31.0,<3.0)
|
|
28
|
+
Project-URL: Homepage, https://github.com/brylee123/mipc-camera-client-python
|
|
29
|
+
Project-URL: Issues, https://github.com/brylee123/mipc-camera-client-python/issues
|
|
30
|
+
Project-URL: Repository, https://github.com/brylee123/mipc-camera-client-python
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# MIPC camera client — local control
|
|
34
|
+
|
|
35
|
+
A Python client that talks directly to a MIPC-compatible camera or gateway at an address you provide. No Windows application, vendor JavaScript, native plugin, cloud account discovery, telemetry, or background service is included.
|
|
36
|
+
|
|
37
|
+
This fork expands [Pan Maruda's original MIPC camera client](https://github.com/pan-maruda/mipc-camera-client-python). This independently maintained distribution is **mipc-camera-client-local**, version **0.2.0**. It retains the original BSD license and attribution. The Windows client supplies protocol evidence; see [hardware validation](docs/HARDWARE.md) for tested camera support.
|
|
38
|
+
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
Python 3.10 or newer:
|
|
42
|
+
|
|
43
|
+
```shell
|
|
44
|
+
python -m pip install mipc-camera-client-local==0.2.0
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The PyPI name and import namespace are distinct from the original `mipc-camera-client` / `mipc_camera_client`. Both distributions can be installed together.
|
|
48
|
+
|
|
49
|
+
## Basic use
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
import os
|
|
53
|
+
from pathlib import Path
|
|
54
|
+
from mipc_camera_client_local import MipcCameraClient
|
|
55
|
+
|
|
56
|
+
with MipcCameraClient("192.168.1.50:80", timeout=10) as camera:
|
|
57
|
+
camera.login(os.environ["CAMERA_USER"], os.environ["CAMERA_PASSWORD"])
|
|
58
|
+
print(camera.get_info())
|
|
59
|
+
Path("snapshot.jpg").write_bytes(camera.get_image())
|
|
60
|
+
print(camera.get_stream_url()) # URL negotiation only; caller owns playback
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Construction does not contact anything. Login uses the existing MIPC DH/DES protocol at the supplied host. Each operation stays at that host, ignores environment proxies and .netrc, rejects HTTP redirects, and has a bounded timeout. There is no automatic login retry or cloud fallback. Expired sessions, including the f300 `Receiver / InvalidSession` response, raise `MipcAuthenticationError`. Callers can renew authentication and retry reads once; the library never automatically replays settings writes, movement or maintenance commands. The legacy protocol uses HTTP and legacy cryptography; it does not provide modern transport security.
|
|
64
|
+
|
|
65
|
+
The hardware-tested f300 uses its device serial as the local login name and its separate Device/Admin PW. For that model, use `camera.login(camera.get_device_sn(), device_password)`. MIPC cloud account credentials do not authenticate the local camera. Other firmware may use a different local username.
|
|
66
|
+
|
|
67
|
+
## Security: keep camera traffic local
|
|
68
|
+
|
|
69
|
+
For better privacy, block the camera's internet access at your router or firewall
|
|
70
|
+
while allowing your local client to reach it. The library uses the configured
|
|
71
|
+
camera host, but it cannot prevent the camera firmware from independently
|
|
72
|
+
contacting vendor services. Network restrictions reduce that exposure; they do
|
|
73
|
+
not make the camera firmware trusted.
|
|
74
|
+
|
|
75
|
+
1. Reserve the camera's LAN address in your router's DHCP settings.
|
|
76
|
+
2. Deny the camera's outbound internet (WAN) traffic across all protocols and
|
|
77
|
+
ports, covering **both IPv4 and IPv6** if enabled. Blocking DNS or vendor
|
|
78
|
+
domains alone is insufficient.
|
|
79
|
+
3. Preserve local access from your client or Home Assistant to the camera's
|
|
80
|
+
control and media services, including return traffic. A generic **Block device**
|
|
81
|
+
option or guest-network isolation may also block LAN access. With a separate
|
|
82
|
+
camera/IoT network, allow the required traffic between networks explicitly.
|
|
83
|
+
4. Restrict every connected interface: Ethernet and Wi-Fi can both be active with
|
|
84
|
+
different addresses. Block both or disconnect the unused interface. Do not
|
|
85
|
+
forward camera ports from the internet; remove existing camera port forwards
|
|
86
|
+
or UPnP mappings.
|
|
87
|
+
5. Verify enforcement of the WAN block, restart the camera, and check local
|
|
88
|
+
snapshots, streaming, controls and events on your model.
|
|
89
|
+
|
|
90
|
+
Vendor cloud viewing, notifications, updates and internet time synchronization
|
|
91
|
+
may stop working. A trusted local time server can be used where supported, with
|
|
92
|
+
the necessary local access allowed. Keep the camera clock correct when consuming
|
|
93
|
+
timestamped events. Your client computer or Home Assistant can retain internet
|
|
94
|
+
access for dependency installation and updates.
|
|
95
|
+
|
|
96
|
+
Local operations have been tested, but hardware validation with camera WAN access
|
|
97
|
+
blocked is **still outstanding**. The camera protocol uses HTTP and legacy
|
|
98
|
+
cryptography; limit LAN access to trusted devices, ideally using a separate
|
|
99
|
+
camera/IoT network. Internet blocking does not add transport encryption.
|
|
100
|
+
|
|
101
|
+
## Settings and controls
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
# After login; call only the settings your hardware supports.
|
|
105
|
+
print(camera.get_microphone_inputs())
|
|
106
|
+
print(camera.get_speaker()) # Direct configuration; list discovery is unsupported on f300.
|
|
107
|
+
print(camera.get_imaging())
|
|
108
|
+
camera.update_imaging(brightness=55, mode="auto")
|
|
109
|
+
camera.set_microphone_level(60)
|
|
110
|
+
camera.update_microphone("mic0", silent=True)
|
|
111
|
+
camera.set_speaker_level(40)
|
|
112
|
+
camera.set_flip(True)
|
|
113
|
+
camera.update_osd(text="Front door", date={"time_enable": 1})
|
|
114
|
+
print(camera.get_alert_config())
|
|
115
|
+
print(camera.get_recording())
|
|
116
|
+
print(camera.get_disks())
|
|
117
|
+
camera.control_ptz(tilt_x=5, tilt_y=0)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Document update methods fetch the current document and preserve unrelated and unknown fields. They reject fields not returned by the camera. Simple setters validate their input ranges; firmware-specific values in advanced document updates are passed without guessed enum conversions. Array replacement is explicit, not an automatic merge of schedules or actions. Use the input/output tokens returned by your device; `mic0`, `ao0`, `vs0`, `p0`, and `ptz0` are examples/defaults, not universal capabilities.
|
|
121
|
+
|
|
122
|
+
The API covers audio inputs/outputs, image modes and levels, flip/power-frequency configuration, OSD, motion and alert configuration/actions, recording schedules, storage, date/NTP, network/Wi-Fi, PTZ/cruise, scenes, schedules, external accessories, gateway/box operations, device passwords, snapshots, media negotiation, events, and maintenance. See [the method reference](docs/API.md).
|
|
123
|
+
|
|
124
|
+
## Capability inspection
|
|
125
|
+
|
|
126
|
+
```python
|
|
127
|
+
report = camera.probe_capabilities(["imaging", "microphones", "osd", "disks"])
|
|
128
|
+
print(report.readable)
|
|
129
|
+
print(report.rejected)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Probing is opt-in and issues only the selected reads. A rejected read can mean missing support, insufficient permissions, or a different response schema. A successful read does not prove that writes are supported. Transport and session failures propagate immediately.
|
|
133
|
+
|
|
134
|
+
## Local event queues
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
with camera.event_queue() as events:
|
|
138
|
+
for item in events.poll(timeout=5):
|
|
139
|
+
from mipc_camera_client_local.events import MotionEvent
|
|
140
|
+
event = MotionEvent.from_message(item)
|
|
141
|
+
if event is not None:
|
|
142
|
+
print(event) # Does not print the device serial.
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Queues use the observed `mmq_create`, `ccm_subscribe`, `mmq_pick`, and `mmq_destroy` flow. Wire timeouts are milliseconds; Python timeouts are seconds. Polling is synchronous and blocks other operations on the same client. Use a separately logged-in client when you need simultaneous controls. The library starts no threads and does not reconnect silently. Local `alert` / `motion_alert` pulses have been received from an f300 while panning changed its view. No motion-clear event was observed. Polls can time out even after successful delivery; callers must close the old queue/session and reconnect with backoff. A timeout must not be interpreted as a motion-clear state. Physical movement still needs a separate validation.
|
|
146
|
+
|
|
147
|
+
The camera must have its motion alarm armed. Reading/subscribing does not change alarm actions. `set_alert_actions()` updates one token at a time; inspect existing IO, snapshot and recording actions before arming.
|
|
148
|
+
|
|
149
|
+
## Advanced endpoints
|
|
150
|
+
|
|
151
|
+
The data-only [protocol inventory](docs/PROTOCOL.md) records **89 observed RPCs: 80 device/queue operations, 5 authentication operations, and 4 account operations**. It includes bundle hashes, call-site offsets, observed field names, and request shapes in `mipc_camera_client_local/endpoints.json`. No vendor bundle or cached camera/account payload is shipped.
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
# Structured Python input; session IDs and MIPC's HTTP encoding are added.
|
|
155
|
+
print(camera.call("ccm_msg_get", flag=0, start=0, counts=20, filter="record"))
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
`call()` accepts catalogued device/queue methods. Account registration, recovery and binding are excluded. `run_rpc()` remains the original low-level escape hatch for flattened parameters at the configured host. Library exceptions identify the method without including credential-bearing URLs or response dumps.
|
|
159
|
+
|
|
160
|
+
Maintenance operations execute when explicitly called. `reboot()`, `restore()`, `control_storage("format")`, `set_network()`, and password changes can disrupt the device or erase data. Nothing calls them automatically. Firmware checks/downloads, NTP, alert actions and network configuration may cause the **camera firmware** to contact other hosts; the library itself does not follow those hosts. Complete offline isolation requires camera network restrictions.
|
|
161
|
+
|
|
162
|
+
Stream, playback and `get_talk_url()` methods negotiate URLs. The optional `send_audio()` method implements bounded local AAC speaker uploads; it does not capture a microphone or embed a player. Returned media URLs must match the configured camera hostname unless `allow_remote=True` is explicitly requested. RTMP/RTSP support depends on firmware. Native plugin clip export and full Windows UI parity are not claimed.
|
|
163
|
+
|
|
164
|
+
## Command line
|
|
165
|
+
|
|
166
|
+
Set `CAMERA_HOST`, `CAMERA_USER` and `CAMERA_PASSWORD` in your environment, then:
|
|
167
|
+
|
|
168
|
+
```shell
|
|
169
|
+
mipc-camera-client-local info
|
|
170
|
+
mipc-camera-client-local read imaging
|
|
171
|
+
mipc-camera-client-local probe
|
|
172
|
+
mipc-camera-client-local snapshot image.jpg
|
|
173
|
+
mipc-camera-client-local stream
|
|
174
|
+
mipc-camera-client-local ptz --x 5 --y 0
|
|
175
|
+
mipc-camera-client-local endpoints ccm_osd_set
|
|
176
|
+
mipc-camera-client-local rpc ccm_msg_get --data-file request.json
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
`endpoints` works offline without credentials. RPC input is a JSON file or standard input (`--data-file -`). It uses structured fields, not flattened `d...` names. RPC commands can write settings and execute immediately. Output documents can contain device identifiers or tokens; treat saved output accordingly.
|
|
180
|
+
|
|
181
|
+
## Development and verification
|
|
182
|
+
|
|
183
|
+
```shell
|
|
184
|
+
python -m pip install poetry
|
|
185
|
+
poetry install --with dev
|
|
186
|
+
poetry run pytest
|
|
187
|
+
poetry run ruff check mipc_camera_client_local tests tools
|
|
188
|
+
poetry run ruff format --check mipc_camera_client_local tests tools
|
|
189
|
+
poetry build
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Tests cover upstream crypto vectors, request encoding, all catalog device dispatch entries, conservative settings updates, auth/error handling, media host restrictions, queue lifecycle, and a real loopback HTTP camera simulator. A read-only f300 hardware run also passed 30 checks, produced a valid 1920×1080 JPEG and decoded three local H.264/RTMP video frames. Speaker-list discovery returned HTTP 404 while direct speaker configuration remained readable; this is now reported as `MipcUnsupportedError`. See [hardware validation](docs/HARDWARE.md) for scope and limits. Follow-up tests verified 16 settings write/read-back paths, a reversible brightness change, both physical motors, and Home Assistant snapshot/HLS consumption. Persistence across a reboot, actual recording without an SD card, and maintenance operations remain unverified.
|
|
193
|
+
|
|
194
|
+
## Credits and license
|
|
195
|
+
|
|
196
|
+
The original library was created by [Pan Maruda (pan-maruda)](https://github.com/pan-maruda) in [mipc-camera-client-python](https://github.com/pan-maruda/mipc-camera-client-python). Their reverse-engineered local authentication, snapshot, streaming and pan/tilt implementation forms the foundation of this fork.
|
|
197
|
+
|
|
198
|
+
This fork adds the expanded device API, protocol inventory and hardware validation. The original copyright notice and BSD-3-Clause license are preserved in [LICENSE](LICENSE).
|
|
199
|
+
|
|
200
|
+
## Video quality profiles
|
|
201
|
+
|
|
202
|
+
`get_stream_profiles()` returns immutable `StreamProfile` objects with the
|
|
203
|
+
advertised playback `token` and firmware `name`. A name such as D1 or CIF does
|
|
204
|
+
**not** establish its resolution. `width` and `height` remain `None` until measured.
|
|
205
|
+
|
|
206
|
+
`probe_stream_profiles(decoder)` negotiates each advertised stream at the local
|
|
207
|
+
camera and supplies its private URL to your bounded decoder callback. Return
|
|
208
|
+
`(frame.width, frame.height)` from a decoded frame. The SDK has no media-decoder
|
|
209
|
+
dependency; the caller provides one. Failed probes retain unknown dimensions;
|
|
210
|
+
authentication errors propagate. Keep URLs private and bound connection/read times.
|
|
211
|
+
|
|
212
|
+
On the tested f300, p0 decoded at 1920×1080. Both p1 (advertised D1) and p2
|
|
213
|
+
(advertised CIF) decoded at 640×360; the server sometimes returned a p2 media path
|
|
214
|
+
for a p1 request. The Windows client sends these same tokens but contains static
|
|
215
|
+
resolution assumptions. Do not convert its labels into assumed frame sizes.
|
|
216
|
+
Selecting a profile changes playback negotiation, not the camera encoder settings.
|
|
217
|
+
|
|
218
|
+
## Clear device controls
|
|
219
|
+
|
|
220
|
+
The [device settings reference](docs/API.md#explicit-device-settings) covers
|
|
221
|
+
credential-free interface/IP/MAC views, camera-advertised timezone metadata, OSD weekday /
|
|
222
|
+
calendar date / clock time and formats, MIPC power frequency, explicit SD recording
|
|
223
|
+
modes and separate motion-action/global-arming controls. All changes stay at the
|
|
224
|
+
configured camera host and preserve unrelated document fields. Restart and factory
|
|
225
|
+
reset are explicit maintenance calls; factory reset has not been live-tested.
|
|
226
|
+
|
|
227
|
+
**Continuous recording** means all-day recording to the camera's local SD storage.
|
|
228
|
+
**Scheduled recording** uses configured time windows. **Recording box** APIs address
|
|
229
|
+
separate MIPC storage hardware. The compatibility method `set_recording_enabled`
|
|
230
|
+
only enables the existing SD task; use `set_recording_mode` to choose the mode.
|
|
231
|
+
|
|
232
|
+
Timezone editing remains an open hardware issue: the tested f300 can acknowledge
|
|
233
|
+
an update while shifting its clock incorrectly. The library reports the setting
|
|
234
|
+
and advertised UTC offsets; it does not claim a safe timezone-only setter. The
|
|
235
|
+
camera's original local clock and settings were restored after this investigation.
|
|
236
|
+
|
|
237
|
+
## Send audio to the speaker
|
|
238
|
+
|
|
239
|
+
The updated library has not been published to PyPI. Install the review branch
|
|
240
|
+
with its optional codec dependency:
|
|
241
|
+
|
|
242
|
+
```shell
|
|
243
|
+
python -m pip install "mipc-camera-client-local[audio]==0.2.0"
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
After login:
|
|
247
|
+
|
|
248
|
+
```python
|
|
249
|
+
from pathlib import Path
|
|
250
|
+
|
|
251
|
+
# Raw signed PCM16 little-endian, mono, 16000 Hz; with no fixed duration cap.
|
|
252
|
+
result = camera.send_audio(Path("announcement.pcm").read_bytes())
|
|
253
|
+
print(result.duration)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
This publishes AAC over RTMP directly to the configured camera. It uses the
|
|
257
|
+
existing speaker volume, does not unmute the camera microphone, and never retries
|
|
258
|
+
failed audio. Pass a `threading.Event` as `stop_event` to stop an upload. This
|
|
259
|
+
synchronous call locks its client until completion; pass an iterable of PCM chunks
|
|
260
|
+
for incremental input and use a separate client for
|
|
261
|
+
concurrent controls. Completion confirms transport, not audibility on every model.
|
|
262
|
+
The tested f300 produced a matching AAC test tone in an authorized acoustic
|
|
263
|
+
loopback check. See [Android evidence and limits](docs/ANDROID.md).
|
|
264
|
+
|
|
265
|
+
Android inspection also added explicit read helpers `get_external_switch_enabled`,
|
|
266
|
+
`get_sleep_config` and `get_crop_zoom`. On the tested f300 only the external-switch
|
|
267
|
+
flag was readable; its physical meaning is unverified. Sleep/crop reads returned
|
|
268
|
+
HTTP 404 and are not advertised as supported controls on that camera.
|
|
269
|
+
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# MIPC camera client — local control
|
|
2
|
+
|
|
3
|
+
A Python client that talks directly to a MIPC-compatible camera or gateway at an address you provide. No Windows application, vendor JavaScript, native plugin, cloud account discovery, telemetry, or background service is included.
|
|
4
|
+
|
|
5
|
+
This fork expands [Pan Maruda's original MIPC camera client](https://github.com/pan-maruda/mipc-camera-client-python). This independently maintained distribution is **mipc-camera-client-local**, version **0.2.0**. It retains the original BSD license and attribution. The Windows client supplies protocol evidence; see [hardware validation](docs/HARDWARE.md) for tested camera support.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Python 3.10 or newer:
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
python -m pip install mipc-camera-client-local==0.2.0
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The PyPI name and import namespace are distinct from the original `mipc-camera-client` / `mipc_camera_client`. Both distributions can be installed together.
|
|
16
|
+
|
|
17
|
+
## Basic use
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
import os
|
|
21
|
+
from pathlib import Path
|
|
22
|
+
from mipc_camera_client_local import MipcCameraClient
|
|
23
|
+
|
|
24
|
+
with MipcCameraClient("192.168.1.50:80", timeout=10) as camera:
|
|
25
|
+
camera.login(os.environ["CAMERA_USER"], os.environ["CAMERA_PASSWORD"])
|
|
26
|
+
print(camera.get_info())
|
|
27
|
+
Path("snapshot.jpg").write_bytes(camera.get_image())
|
|
28
|
+
print(camera.get_stream_url()) # URL negotiation only; caller owns playback
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Construction does not contact anything. Login uses the existing MIPC DH/DES protocol at the supplied host. Each operation stays at that host, ignores environment proxies and .netrc, rejects HTTP redirects, and has a bounded timeout. There is no automatic login retry or cloud fallback. Expired sessions, including the f300 `Receiver / InvalidSession` response, raise `MipcAuthenticationError`. Callers can renew authentication and retry reads once; the library never automatically replays settings writes, movement or maintenance commands. The legacy protocol uses HTTP and legacy cryptography; it does not provide modern transport security.
|
|
32
|
+
|
|
33
|
+
The hardware-tested f300 uses its device serial as the local login name and its separate Device/Admin PW. For that model, use `camera.login(camera.get_device_sn(), device_password)`. MIPC cloud account credentials do not authenticate the local camera. Other firmware may use a different local username.
|
|
34
|
+
|
|
35
|
+
## Security: keep camera traffic local
|
|
36
|
+
|
|
37
|
+
For better privacy, block the camera's internet access at your router or firewall
|
|
38
|
+
while allowing your local client to reach it. The library uses the configured
|
|
39
|
+
camera host, but it cannot prevent the camera firmware from independently
|
|
40
|
+
contacting vendor services. Network restrictions reduce that exposure; they do
|
|
41
|
+
not make the camera firmware trusted.
|
|
42
|
+
|
|
43
|
+
1. Reserve the camera's LAN address in your router's DHCP settings.
|
|
44
|
+
2. Deny the camera's outbound internet (WAN) traffic across all protocols and
|
|
45
|
+
ports, covering **both IPv4 and IPv6** if enabled. Blocking DNS or vendor
|
|
46
|
+
domains alone is insufficient.
|
|
47
|
+
3. Preserve local access from your client or Home Assistant to the camera's
|
|
48
|
+
control and media services, including return traffic. A generic **Block device**
|
|
49
|
+
option or guest-network isolation may also block LAN access. With a separate
|
|
50
|
+
camera/IoT network, allow the required traffic between networks explicitly.
|
|
51
|
+
4. Restrict every connected interface: Ethernet and Wi-Fi can both be active with
|
|
52
|
+
different addresses. Block both or disconnect the unused interface. Do not
|
|
53
|
+
forward camera ports from the internet; remove existing camera port forwards
|
|
54
|
+
or UPnP mappings.
|
|
55
|
+
5. Verify enforcement of the WAN block, restart the camera, and check local
|
|
56
|
+
snapshots, streaming, controls and events on your model.
|
|
57
|
+
|
|
58
|
+
Vendor cloud viewing, notifications, updates and internet time synchronization
|
|
59
|
+
may stop working. A trusted local time server can be used where supported, with
|
|
60
|
+
the necessary local access allowed. Keep the camera clock correct when consuming
|
|
61
|
+
timestamped events. Your client computer or Home Assistant can retain internet
|
|
62
|
+
access for dependency installation and updates.
|
|
63
|
+
|
|
64
|
+
Local operations have been tested, but hardware validation with camera WAN access
|
|
65
|
+
blocked is **still outstanding**. The camera protocol uses HTTP and legacy
|
|
66
|
+
cryptography; limit LAN access to trusted devices, ideally using a separate
|
|
67
|
+
camera/IoT network. Internet blocking does not add transport encryption.
|
|
68
|
+
|
|
69
|
+
## Settings and controls
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
# After login; call only the settings your hardware supports.
|
|
73
|
+
print(camera.get_microphone_inputs())
|
|
74
|
+
print(camera.get_speaker()) # Direct configuration; list discovery is unsupported on f300.
|
|
75
|
+
print(camera.get_imaging())
|
|
76
|
+
camera.update_imaging(brightness=55, mode="auto")
|
|
77
|
+
camera.set_microphone_level(60)
|
|
78
|
+
camera.update_microphone("mic0", silent=True)
|
|
79
|
+
camera.set_speaker_level(40)
|
|
80
|
+
camera.set_flip(True)
|
|
81
|
+
camera.update_osd(text="Front door", date={"time_enable": 1})
|
|
82
|
+
print(camera.get_alert_config())
|
|
83
|
+
print(camera.get_recording())
|
|
84
|
+
print(camera.get_disks())
|
|
85
|
+
camera.control_ptz(tilt_x=5, tilt_y=0)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Document update methods fetch the current document and preserve unrelated and unknown fields. They reject fields not returned by the camera. Simple setters validate their input ranges; firmware-specific values in advanced document updates are passed without guessed enum conversions. Array replacement is explicit, not an automatic merge of schedules or actions. Use the input/output tokens returned by your device; `mic0`, `ao0`, `vs0`, `p0`, and `ptz0` are examples/defaults, not universal capabilities.
|
|
89
|
+
|
|
90
|
+
The API covers audio inputs/outputs, image modes and levels, flip/power-frequency configuration, OSD, motion and alert configuration/actions, recording schedules, storage, date/NTP, network/Wi-Fi, PTZ/cruise, scenes, schedules, external accessories, gateway/box operations, device passwords, snapshots, media negotiation, events, and maintenance. See [the method reference](docs/API.md).
|
|
91
|
+
|
|
92
|
+
## Capability inspection
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
report = camera.probe_capabilities(["imaging", "microphones", "osd", "disks"])
|
|
96
|
+
print(report.readable)
|
|
97
|
+
print(report.rejected)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Probing is opt-in and issues only the selected reads. A rejected read can mean missing support, insufficient permissions, or a different response schema. A successful read does not prove that writes are supported. Transport and session failures propagate immediately.
|
|
101
|
+
|
|
102
|
+
## Local event queues
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
with camera.event_queue() as events:
|
|
106
|
+
for item in events.poll(timeout=5):
|
|
107
|
+
from mipc_camera_client_local.events import MotionEvent
|
|
108
|
+
event = MotionEvent.from_message(item)
|
|
109
|
+
if event is not None:
|
|
110
|
+
print(event) # Does not print the device serial.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Queues use the observed `mmq_create`, `ccm_subscribe`, `mmq_pick`, and `mmq_destroy` flow. Wire timeouts are milliseconds; Python timeouts are seconds. Polling is synchronous and blocks other operations on the same client. Use a separately logged-in client when you need simultaneous controls. The library starts no threads and does not reconnect silently. Local `alert` / `motion_alert` pulses have been received from an f300 while panning changed its view. No motion-clear event was observed. Polls can time out even after successful delivery; callers must close the old queue/session and reconnect with backoff. A timeout must not be interpreted as a motion-clear state. Physical movement still needs a separate validation.
|
|
114
|
+
|
|
115
|
+
The camera must have its motion alarm armed. Reading/subscribing does not change alarm actions. `set_alert_actions()` updates one token at a time; inspect existing IO, snapshot and recording actions before arming.
|
|
116
|
+
|
|
117
|
+
## Advanced endpoints
|
|
118
|
+
|
|
119
|
+
The data-only [protocol inventory](docs/PROTOCOL.md) records **89 observed RPCs: 80 device/queue operations, 5 authentication operations, and 4 account operations**. It includes bundle hashes, call-site offsets, observed field names, and request shapes in `mipc_camera_client_local/endpoints.json`. No vendor bundle or cached camera/account payload is shipped.
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
# Structured Python input; session IDs and MIPC's HTTP encoding are added.
|
|
123
|
+
print(camera.call("ccm_msg_get", flag=0, start=0, counts=20, filter="record"))
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`call()` accepts catalogued device/queue methods. Account registration, recovery and binding are excluded. `run_rpc()` remains the original low-level escape hatch for flattened parameters at the configured host. Library exceptions identify the method without including credential-bearing URLs or response dumps.
|
|
127
|
+
|
|
128
|
+
Maintenance operations execute when explicitly called. `reboot()`, `restore()`, `control_storage("format")`, `set_network()`, and password changes can disrupt the device or erase data. Nothing calls them automatically. Firmware checks/downloads, NTP, alert actions and network configuration may cause the **camera firmware** to contact other hosts; the library itself does not follow those hosts. Complete offline isolation requires camera network restrictions.
|
|
129
|
+
|
|
130
|
+
Stream, playback and `get_talk_url()` methods negotiate URLs. The optional `send_audio()` method implements bounded local AAC speaker uploads; it does not capture a microphone or embed a player. Returned media URLs must match the configured camera hostname unless `allow_remote=True` is explicitly requested. RTMP/RTSP support depends on firmware. Native plugin clip export and full Windows UI parity are not claimed.
|
|
131
|
+
|
|
132
|
+
## Command line
|
|
133
|
+
|
|
134
|
+
Set `CAMERA_HOST`, `CAMERA_USER` and `CAMERA_PASSWORD` in your environment, then:
|
|
135
|
+
|
|
136
|
+
```shell
|
|
137
|
+
mipc-camera-client-local info
|
|
138
|
+
mipc-camera-client-local read imaging
|
|
139
|
+
mipc-camera-client-local probe
|
|
140
|
+
mipc-camera-client-local snapshot image.jpg
|
|
141
|
+
mipc-camera-client-local stream
|
|
142
|
+
mipc-camera-client-local ptz --x 5 --y 0
|
|
143
|
+
mipc-camera-client-local endpoints ccm_osd_set
|
|
144
|
+
mipc-camera-client-local rpc ccm_msg_get --data-file request.json
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
`endpoints` works offline without credentials. RPC input is a JSON file or standard input (`--data-file -`). It uses structured fields, not flattened `d...` names. RPC commands can write settings and execute immediately. Output documents can contain device identifiers or tokens; treat saved output accordingly.
|
|
148
|
+
|
|
149
|
+
## Development and verification
|
|
150
|
+
|
|
151
|
+
```shell
|
|
152
|
+
python -m pip install poetry
|
|
153
|
+
poetry install --with dev
|
|
154
|
+
poetry run pytest
|
|
155
|
+
poetry run ruff check mipc_camera_client_local tests tools
|
|
156
|
+
poetry run ruff format --check mipc_camera_client_local tests tools
|
|
157
|
+
poetry build
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Tests cover upstream crypto vectors, request encoding, all catalog device dispatch entries, conservative settings updates, auth/error handling, media host restrictions, queue lifecycle, and a real loopback HTTP camera simulator. A read-only f300 hardware run also passed 30 checks, produced a valid 1920×1080 JPEG and decoded three local H.264/RTMP video frames. Speaker-list discovery returned HTTP 404 while direct speaker configuration remained readable; this is now reported as `MipcUnsupportedError`. See [hardware validation](docs/HARDWARE.md) for scope and limits. Follow-up tests verified 16 settings write/read-back paths, a reversible brightness change, both physical motors, and Home Assistant snapshot/HLS consumption. Persistence across a reboot, actual recording without an SD card, and maintenance operations remain unverified.
|
|
161
|
+
|
|
162
|
+
## Credits and license
|
|
163
|
+
|
|
164
|
+
The original library was created by [Pan Maruda (pan-maruda)](https://github.com/pan-maruda) in [mipc-camera-client-python](https://github.com/pan-maruda/mipc-camera-client-python). Their reverse-engineered local authentication, snapshot, streaming and pan/tilt implementation forms the foundation of this fork.
|
|
165
|
+
|
|
166
|
+
This fork adds the expanded device API, protocol inventory and hardware validation. The original copyright notice and BSD-3-Clause license are preserved in [LICENSE](LICENSE).
|
|
167
|
+
|
|
168
|
+
## Video quality profiles
|
|
169
|
+
|
|
170
|
+
`get_stream_profiles()` returns immutable `StreamProfile` objects with the
|
|
171
|
+
advertised playback `token` and firmware `name`. A name such as D1 or CIF does
|
|
172
|
+
**not** establish its resolution. `width` and `height` remain `None` until measured.
|
|
173
|
+
|
|
174
|
+
`probe_stream_profiles(decoder)` negotiates each advertised stream at the local
|
|
175
|
+
camera and supplies its private URL to your bounded decoder callback. Return
|
|
176
|
+
`(frame.width, frame.height)` from a decoded frame. The SDK has no media-decoder
|
|
177
|
+
dependency; the caller provides one. Failed probes retain unknown dimensions;
|
|
178
|
+
authentication errors propagate. Keep URLs private and bound connection/read times.
|
|
179
|
+
|
|
180
|
+
On the tested f300, p0 decoded at 1920×1080. Both p1 (advertised D1) and p2
|
|
181
|
+
(advertised CIF) decoded at 640×360; the server sometimes returned a p2 media path
|
|
182
|
+
for a p1 request. The Windows client sends these same tokens but contains static
|
|
183
|
+
resolution assumptions. Do not convert its labels into assumed frame sizes.
|
|
184
|
+
Selecting a profile changes playback negotiation, not the camera encoder settings.
|
|
185
|
+
|
|
186
|
+
## Clear device controls
|
|
187
|
+
|
|
188
|
+
The [device settings reference](docs/API.md#explicit-device-settings) covers
|
|
189
|
+
credential-free interface/IP/MAC views, camera-advertised timezone metadata, OSD weekday /
|
|
190
|
+
calendar date / clock time and formats, MIPC power frequency, explicit SD recording
|
|
191
|
+
modes and separate motion-action/global-arming controls. All changes stay at the
|
|
192
|
+
configured camera host and preserve unrelated document fields. Restart and factory
|
|
193
|
+
reset are explicit maintenance calls; factory reset has not been live-tested.
|
|
194
|
+
|
|
195
|
+
**Continuous recording** means all-day recording to the camera's local SD storage.
|
|
196
|
+
**Scheduled recording** uses configured time windows. **Recording box** APIs address
|
|
197
|
+
separate MIPC storage hardware. The compatibility method `set_recording_enabled`
|
|
198
|
+
only enables the existing SD task; use `set_recording_mode` to choose the mode.
|
|
199
|
+
|
|
200
|
+
Timezone editing remains an open hardware issue: the tested f300 can acknowledge
|
|
201
|
+
an update while shifting its clock incorrectly. The library reports the setting
|
|
202
|
+
and advertised UTC offsets; it does not claim a safe timezone-only setter. The
|
|
203
|
+
camera's original local clock and settings were restored after this investigation.
|
|
204
|
+
|
|
205
|
+
## Send audio to the speaker
|
|
206
|
+
|
|
207
|
+
The updated library has not been published to PyPI. Install the review branch
|
|
208
|
+
with its optional codec dependency:
|
|
209
|
+
|
|
210
|
+
```shell
|
|
211
|
+
python -m pip install "mipc-camera-client-local[audio]==0.2.0"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
After login:
|
|
215
|
+
|
|
216
|
+
```python
|
|
217
|
+
from pathlib import Path
|
|
218
|
+
|
|
219
|
+
# Raw signed PCM16 little-endian, mono, 16000 Hz; with no fixed duration cap.
|
|
220
|
+
result = camera.send_audio(Path("announcement.pcm").read_bytes())
|
|
221
|
+
print(result.duration)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
This publishes AAC over RTMP directly to the configured camera. It uses the
|
|
225
|
+
existing speaker volume, does not unmute the camera microphone, and never retries
|
|
226
|
+
failed audio. Pass a `threading.Event` as `stop_event` to stop an upload. This
|
|
227
|
+
synchronous call locks its client until completion; pass an iterable of PCM chunks
|
|
228
|
+
for incremental input and use a separate client for
|
|
229
|
+
concurrent controls. Completion confirms transport, not audibility on every model.
|
|
230
|
+
The tested f300 produced a matching AAC test tone in an authorized acoustic
|
|
231
|
+
loopback check. See [Android evidence and limits](docs/ANDROID.md).
|
|
232
|
+
|
|
233
|
+
Android inspection also added explicit read helpers `get_external_switch_enabled`,
|
|
234
|
+
`get_sleep_config` and `get_crop_zoom`. On the tested f300 only the external-switch
|
|
235
|
+
flag was readable; its physical meaning is unverified. Sleep/crop reads returned
|
|
236
|
+
HTTP 404 and are not advertised as supported controls on that camera.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Android client findings and local speaker audio
|
|
2
|
+
|
|
3
|
+
The supplied file named `uptodown-com.mining.app.mipca.apk` was identified from
|
|
4
|
+
its binary manifest as **com.uptodown 7.42**, not MIPC. It was not installed or
|
|
5
|
+
executed. The filename alone is not sufficient to identify an Android package.
|
|
6
|
+
|
|
7
|
+
An actual MIPC APK was subsequently retrieved through the public download flow
|
|
8
|
+
at <http://www.mipcm.com/download/> and its `ccvs_get_version_req` download lookup.
|
|
9
|
+
This is the version served by that download flow, not a claim of the newest
|
|
10
|
+
Google Play version:
|
|
11
|
+
|
|
12
|
+
- Package: `com.mining.app.mipca`
|
|
13
|
+
- Version: `v11.9.1.2409291120`, version code 293
|
|
14
|
+
- APK SHA-256: `20c66d333df411629bb2ed7ce572ddca80bb27bef0dff96f65c29d0b4222d8f8`
|
|
15
|
+
- Static inspection only; no APK or vendor native library is redistributed.
|
|
16
|
+
|
|
17
|
+
DEX call sites in `com.mining.cloud.mcld_agent` confirm the following additional
|
|
18
|
+
request shapes. The endpoint catalogue records the DEX hash, code offset and
|
|
19
|
+
method name. These are protocol evidence, not universal hardware capabilities.
|
|
20
|
+
|
|
21
|
+
| RPC | Non-session request fields | Finding on the tested f300 |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `ccm_exsw_get` / `set` | none / `enable` | Read succeeds with a boolean-like flag; physical meaning and writes unverified |
|
|
24
|
+
| `ccm_sleep_get` / `set` | none / `sleep_enable` | Read returns HTTP 404; no sleep/privacy control claimed |
|
|
25
|
+
| `ccm_crop_zoom_get` / `set` | `token` / `token`, `smooth_crop_zoom`, `crop_zoom_conf` (`x`, `y`, `width`, `height`) | Read returns HTTP 404; coordinate units unverified |
|
|
26
|
+
| `ccm_preset_pos_ctrl` | `cmd`, `infos` (`info` list containing `id`, `nick`) | Call site verified; commands and hardware behavior not tested |
|
|
27
|
+
| `ccm_audio_ctrl` | `cmd` | A separate voice-alarm control, not a speech upload; intentionally not activated |
|
|
28
|
+
|
|
29
|
+
String-only candidates also include cloud, segment, UART, box-search and network
|
|
30
|
+
test operations. Some names are callbacks or acknowledgements. They are not added
|
|
31
|
+
to the callable catalogue without confirmed request construction. `ccm_cap_get`
|
|
32
|
+
appears in multiple Android functions, but this f300 did not return the expected
|
|
33
|
+
acknowledgement; no guessed capability schema is exposed.
|
|
34
|
+
|
|
35
|
+
## Talk audio
|
|
36
|
+
|
|
37
|
+
The Windows client negotiates `ccm_talk`, then publishes microphone audio through
|
|
38
|
+
its native media engine. The Android client also negotiates `ccm_talk`, defaults
|
|
39
|
+
to RTDP, and constructs a microphone-to-destination channel. Its request omits the
|
|
40
|
+
Windows profile token and includes a field literally spelled **`slient`**, default
|
|
41
|
+
1. This spelling is preserved in the raw catalogue; it is not treated as a proven
|
|
42
|
+
general mute/stop API. Android's microphone wrapper defaults to 16 kHz capture.
|
|
43
|
+
|
|
44
|
+
Local RTMP publishing was investigated on the f300 without a cloud account.
|
|
45
|
+
Silent G.711 A-law, AAC and Nellymoser uploads accepted packets. A subsequent
|
|
46
|
+
authorized microphone-loopback test detected the transmitted **1320 Hz AAC** tone
|
|
47
|
+
strongly in the camera's returned microphone audio. AAC at 16 kHz mono is therefore
|
|
48
|
+
the implemented path. Packet acceptance alone is not treated as proof that other
|
|
49
|
+
codecs play correctly. Microphone mute was restored and no ambient audio saved.
|
|
50
|
+
|
|
51
|
+
`send_audio()` encodes caller-provided PCM16 little-endian, mono, 16 kHz bytes to
|
|
52
|
+
AAC and publishes FLV over RTMP using optional PyAV. It decodes and sends incrementally without a fixed duration cap,
|
|
53
|
+
paces transmission, supports a `threading.Event` cancellation signal, and closes
|
|
54
|
+
the publisher on completion or failure. It never changes microphone mute or
|
|
55
|
+
speaker volume. The camera's current speaker volume still determines audibility.
|
|
56
|
+
|
|
57
|
+
Negotiating a talk URL can reserve the camera's single talk resource before any
|
|
58
|
+
audio is sent. Abandoning the URL during exploration produced `Receiver` /
|
|
59
|
+
`ccm.system.err` on subsequent negotiations; publishing and closing the original
|
|
60
|
+
destination released it, and fresh negotiation worked again. Avoid probing talk
|
|
61
|
+
as an ordinary capability read. A network failure can prevent clean release; the
|
|
62
|
+
library reports the failure without silently retrying or rebooting the camera.
|
|
63
|
+
|
|
64
|
+
The library does not capture a computer microphone or provide browser two-way
|
|
65
|
+
WebRTC audio. Applications supply their own PCM bytes. Use a separately logged-in
|
|
66
|
+
client when controls or event polling must run while an upload is active.
|