You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-25Lines changed: 59 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ client = ONVIFClient(
313
313
## Service Discovery: Understanding Device Capabilities
314
314
315
315
> [!WARNING]
316
-
> Before performing any operations on an ONVIF device, it is highly recommended to discover which services are available and supported by the device. This library automatically uses `GetServices` during initialization to discover service endpoints, but you can also query services manually for detailed information including capabilities.
316
+
> Before performing any operations on an ONVIF device, it is highly recommended to discover which services are available and supported by the device. This library automatically performs comprehensive service discovery during initialization using a robust fallback mechanism.
317
317
318
318
**Why discover device services?**
319
319
@@ -324,50 +324,84 @@ client = ONVIFClient(
324
324
325
325
**How service discovery works in this library:**
326
326
327
-
The `ONVIFClient` automatically calls `GetServices` during initialization to build a service map. This map is used internally to resolve service endpoints:
327
+
The `ONVIFClient` uses a **3-tier discovery approach** to maximize device compatibility:
328
+
329
+
1.**GetServices (Preferred)** - Tries `GetServices` first for detailed service information
330
+
2.**GetCapabilities (Fallback)** - Falls back to `GetCapabilities` if `GetServices` is not supported
331
+
3.**Default URLs (Final Fallback)** - Uses standard ONVIF URLs as last resort
> The library handles service discovery automatically, so you typically don't need to call `GetServices` manually unless you need detailed capability information or want to refresh the service list after device configuration changes.
404
+
> The library handles service discovery automatically with intelligent fallback. You typically don't need to call discovery methods manually unless you need detailed capability information or want to refresh the service list after device configuration changes.
Copy file name to clipboardExpand all lines: README_ID.md
+59-25Lines changed: 59 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,7 +312,7 @@ client = ONVIFClient(
312
312
## Penemuan Layanan: Memahami Kapabilitas Perangkat
313
313
314
314
> [!WARNING]
315
-
> Sebelum melakukan operasi apa pun pada perangkat ONVIF, sangat disarankan untuk menemukan layanan mana yang tersedia dan didukung oleh perangkat. Pustaka ini secara otomatis menggunakan `GetServices` selama inisialisasi untuk menemukan endpoint layanan, tetapi Anda juga dapat melakukan query layanan secara manual untuk informasi detail termasuk kapabilitas.
315
+
> Sebelum melakukan operasi apa pun pada perangkat ONVIF, sangat disarankan untuk menemukan layanan mana yang tersedia dan didukung oleh perangkat. Pustaka ini secara otomatis melakukan penemuan layanan yang komprehensif selama inisialisasi menggunakan mekanisme fallback yang kuat.
316
316
317
317
**Mengapa menemukan layanan perangkat?**
318
318
@@ -323,50 +323,84 @@ client = ONVIFClient(
323
323
324
324
**Cara kerja penemuan layanan di pustaka ini:**
325
325
326
-
`ONVIFClient` secara otomatis memanggil `GetServices` selama inisialisasi untuk membangun peta layanan. Peta ini digunakan secara internal untuk menyelesaikan endpoint layanan:
326
+
`ONVIFClient` menggunakan **pendekatan penemuan 3-tingkat** untuk memaksimalkan kompatibilitas perangkat:
327
+
328
+
1.**GetServices (Preferensi)** - Mencoba `GetServices` terlebih dahulu untuk informasi layanan yang detail
329
+
2.**GetCapabilities (Fallback)** - Menggunakan `GetCapabilities` jika `GetServices` tidak didukung
330
+
3.**URL Default (Fallback Akhir)** - Menggunakan URL ONVIF standar sebagai pilihan terakhir
> Pustaka menangani penemuan layanan secara otomatis, jadi Anda biasanya tidak perlu memanggil `GetServices` secara manual kecuali Anda memerlukan informasi kapabilitas detail atau ingin menyegarkan daftar layanan setelah perubahan konfigurasi perangkat.
403
+
> Pustaka menangani penemuan layanan secara otomatis dengan fallback yang cerdas. Anda biasanya tidak perlu memanggil metode penemuan secara manual kecuali Anda memerlukan informasi kapabilitas detail atau ingin menyegarkan daftar layanan setelah perubahan konfigurasi perangkat.
0 commit comments