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
DeviceProviderGidBuilder builder() static nothrowGet builder for [gst.device_provider.DeviceProvider] Returns: New builder objectbool register(gst.plugin.Plugin plugin, string name, uint rank, gobject.types.GType type) static nothrowCreate a new device providerfactory capable of instantiating objects of the type and add the factory to plugin.bool canMonitor() nothrowvoid deviceAdd(gst.device.Device device) nothrowPosts 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) nothrowThis function is used when changed_device was modified into its new form device. This will post a `DEVICE_CHANGED` message on the bus to let the application know that the device was modified. #GstD...void deviceRemove(gst.device.Device device) nothrowPosts a message on the provider's #GstBus to inform applications that a device has been removed.gst.device.Device[] getDevices() nothrowGets 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() nothrowRetrieves 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() nothrowGet 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...bool isStarted() nothrowThis function can be used to know if the provider was successfully started. Returns:bool start() nothrowStarts providering the devices. This will cause #GST_MESSAGE_DEVICE_ADDED and #GST_MESSAGE_DEVICE_REMOVED messages to be posted on the provider's bus when devices are added or removed from the system.void stop() nothrowDecreases 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....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) nothrowConnect 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) nothrowConnect to `ProviderUnhidden` signal.Fluent builder implementation template for gst.device_provider.DeviceProvider
Fluent builder for gst.device_provider.DeviceProvider
Methods