gst.device_provider

Module for [DeviceProvider] class

Types 3

A #GstDeviceProvider subclass is provided by a plugin that handles devices if there is a way to programmatically list connected devices. It can also optionally provide updates to the list of connected devices.

Each #GstDeviceProvider subclass is a singleton, a plugin should normally provide a single subclass for all devices.

Applications would normally use a #GstDeviceMonitor to monitor devices from all relevant providers.

Methods
GType _gType() @property
DeviceProvider self()Returns `this`, for use in `with` statements.
DeviceProviderGidBuilder builder()Get builder for [gst.device_provider.DeviceProvider] Returns: New builder object
bool register(gst.plugin.Plugin plugin, string name, uint rank, gobject.types.GType type)Create a new device providerfactory capable of instantiating objects of the type and add the factory to plugin.
bool canMonitor()
void deviceAdd(gst.device.Device device)Posts a message on the provider's #GstBus to inform applications that a new device has been added.
void deviceChanged(gst.device.Device device, gst.device.Device changedDevice)This function is used when changeddevice was modified into its new form device. This will post a `DEVICECHANGED` message on the bus to let the application know that the device was modified. #GstDev...
void deviceRemove(gst.device.Device device)Posts a message on the provider's #GstBus to inform applications that a device has been removed.
gst.bus.Bus getBus()Gets the #GstBus of this #GstDeviceProvider Returns: a #GstBus
gst.device.Device[] getDevices()Gets a list of devices that this provider understands. This may actually probe the hardware if the provider is not currently started.
gst.device_provider_factory.DeviceProviderFactory getFactory()Retrieves the factory that was used to create this device provider. Returns: the #GstDeviceProviderFactory used for creating this device provider. no refcounting is needed.
string[] getHiddenProviders()Get the provider factory names of the #GstDeviceProvider instances that are hidden by provider. Returns: a list of hidden providers factory names or null when nothing is hidden by provider. Free wi...
string getMetadata(string key)Get metadata with key in provider.
void hideProvider(string name)Make provider hide the devices from the factory with name.
bool isStarted()This function can be used to know if the provider was successfully started. Returns:
bool start()Starts providering the devices. This will cause #GSTMESSAGEDEVICEADDED and #GSTMESSAGEDEVICEREMOVED messages to be posted on the provider's bus when devices are added or removed from the system.
void stop()Decreases the use-count by one. If the use count reaches zero, this #GstDeviceProvider will stop providering the devices. This needs to be called the same number of times that [gst.device_provider....
void unhideProvider(string name)Make provider unhide the devices from factory name.
gulong connectProviderHidden(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gst.device_provider.DeviceProvider))) && Parameters!T.length < 3)Connect to `ProviderHidden` signal.
gulong connectProviderUnhidden(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gst.device_provider.DeviceProvider))) && Parameters!T.length < 3)Connect to `ProviderUnhidden` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gst.device_provider.DeviceProvider]