A GStreamer Device represents a hardware device that can serve as a source or a sink. Each device contains metadata on the device, such as the caps it handles as well as its class: a string representation that states what the device does. It can also create elements that can be used in a GStreamer pipeline.
Create an element with all of the required parameters to use a-device. The element will be named name or, if #f, a unique name will be generated.
Get the caps supported by a-device.
Gets the class of a-device; A "/" separated list.
Get the user-friendly name of this a-device.
Returns #t if a-device matches all of the given classes, #f otherwise.
A device monitor monitors hardware devices. They post messages on their bus when new devices are available and have been removed, and can get a list of devices.
Gets the bus for a-device-monitor where messages about device states are posted.
(send a-device-monitor add-filter classes caps) → exact-integer? classes : (or/c string? #f) caps : (or/c caps? #f)Adds a filter for a device to be monitored. Devices that match classes and caps will be probed by a-device-monitor. If classes is #f any device class will be matched. Similarly, if caps is #f, any media type will be matched. This will return the id of the filter, or 0 if no device is available to match this filter.Removes a filter from a-device-monitor using a filter-id that was returned by add-filter. Returns #t if the filter-id was valid, #f otherwise.Gets a list of devices from a-device-monitor that match any of its filters.
Create a new device monitor.