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
{{ message }}
Repository navigation
Commit 9172f5c
Browse filesBrowse the repository at this point in the historyBrowse files
fix: release codec wrappers and distinguish device failures (#562)
Release all queried transceivers when codec configuration fails and close receiver and track wrappers on every exit. Reject non-finite encoding values in the builder.
Distinguish an unavailable audio backend from other native device failures, preserve failed queries as errors, and stop PulseAudio mainloops without holding their lock. Update device documentation and add regression coverage.
Copy file name to clipboardExpand all lines: docs/guide/client-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -508,7 +508,7 @@ The new camera keeps the resolution and frame rate of the old one, as far as it
508
508
509
509
### Devices
510
510
511
-
`media.devices()` returns the cameras, microphones and speakers. The first call reads them from the system; after that, the lists are snapshots kept current in the background, so reading them is cheap on any thread. Where the system reports no device changes, as on a Linux machine without PulseAudio, they are read on each call instead. `screens()` and `windows()` ask the system on each call. A kind of device the system cannot list, such as audio devices on a machine without an audio system, comes back as an empty list; a query that fails otherwise throws a `MediaException`, so an empty list means there are no such devices.
511
+
`media.devices()` returns the cameras, microphones and speakers. The first call reads them from the system; after that, the lists are snapshots kept current in the background, so reading them is cheap on any thread. Where the system reports no device changes, as on a Linux machine without PulseAudio, they are read on each call instead. `screens()` and `windows()` ask the system on each call. A query that fails, including an unavailable audio backend, throws a `MediaException`, so an empty list means there are no such devices. Its cause is an `AudioBackendUnavailableException` when the audio backend is missing or unreachable, or a `DeviceException` for other native device failures.
0 commit comments