Top |
|
flu_device_list_get () |
FluDevice * | flu_device_ref () |
|
flu_device_unref () |
|
flu_device_list_free () |
const |
flu_device_type_name_get () |
FluDeviceType | flu_device_type_get () |
const |
flu_device_name_get () |
const |
flu_device_uri_get () |
const |
flu_device_label_get () |
const |
flu_device_current_media_id_get () |
|
flu_device_is_fake () |
const |
flu_device_output_formats_get () |
|
flu_device_config_clear () |
|
flu_device_config_copy () |
|
flu_device_config_set () |
const FluDeviceConfig * | flu_device_config_get () |
These devices can be enumerated and passed to flu_player_device_open()
,
instead of flu_player_uri_open()
, which requires a URI.
Devices allow the application to access cameras, microphones,
screen/application capture or DVD drives, which do not map nicely to URIs
in most cases.
GList * flu_device_list_get ();
Retrieves the list of currently available hardware devices as a GList of FluDevice.
Free the whole list afterwards with flu_device_list_free()
, or keep extra
references with flu_device_ref()
and flu_device_unref()
void flu_device_list_free ();
GList *devices_list
Frees a device list returned by flu_device_list_get()
.
This is a convenience wrapper around g_list_free_full()
flu_device_unref()
for each entry in the list.
constgchar * flu_device_type_name_get (FluDeviceType type
);
Returns a human-readable string describing a device category
FluDeviceType
flu_device_type_get (const FluDevice *device
);
Category this device belongs to
constgchar * flu_device_name_get (const FluDevice *device
);
A human-readable name of the device. Some devices might return a unique identifier instead.
constgchar * flu_device_uri_get (const FluDevice *device
);
Device URI
Could be dvd:///dev/dvd
on Linux or dvd://\\.\D:
on Windows, for example.
Not all devices have a URI.
constgchar * flu_device_label_get (const FluDevice *device
);
Media label read from the device. Not available for all kinds of media. Mostly human-readable.
constgchar * flu_device_current_media_id_get (const FluDevice *device
);
Unique ID for the media currently inserted in the device (for devices with removable media, like DVDs, for example) or the name of the GStreamer plugin used to provide a device interface (for hardware devices like a camera or a microphone, for example).
In case of removable media, it is a 128-bit MD5 string (16 chars),
NULL
gboolean flu_device_is_fake (const FluDevice *device
);
Gets the information if device is a fake software device or a real hardware device. Useful to identify a real camera or microphone from emulated devices, for example.
constGList * flu_device_output_formats_get (FluDevice *device
);
Gets a list of output formats provided by this device.
The list of available
output formats. If you need to keep a FluStreamInfo data beyond the
lifetime of the FluDevice instance, you can use flu_stream_info_copy()
to
copy them to a local instance. Don't forget to call flu_stream_info_clear()
later on your local instance to free up memory.
[element-type FluStreamInfo][transfer none]
void flu_device_config_clear (FluDeviceConfig *config
);
Clear (initialize to default values) a FluDeviceConfig structure and frees associated memory.
void flu_device_config_copy (FluDeviceConfig *target
,const FluDeviceConfig *src
);
Copy the information of a device configuration. This function will copy data from a source FluDeviceConfig into a target structure. While doing so it will first free the members of target to avoid memory leaks. Target does not need to be of the same type as src.
WARNING: Use flu_device_config_clear()
to clear and free the
information of the struct
target |
The FluDeviceConfig to write the information to |
|
src |
The FluDeviceConfig to copy the information from |
gboolean flu_device_config_set (FluDevice *device
,const FluDeviceConfig *device_config
);
WARNING: actual device configuration values are read when connecting
the device to a recorder or opening it from a player. Calling
flu_device_config_set()
AFTER flu_recorder_connect_device()
or
flu_player_device_open()
WILL NOT change recorder or player
configurations.
device |
The FluDevice to configure |
|
device_config |
The device configuration to set. |
[transfer none] |
const FluDeviceConfig *
flu_device_config_get (const FluDevice *device
);
Gets device configuration or NULL
Device FluDeviceConfig configuration or
NULL
flu_device_config_copy()
to copy them to a local instance. Don't forget to
call flu_device_config_clear()
later on your local instance to free up
memory.
Device categories, useful for searching for a specific device or using device-type-specific API
typedef struct { gint pid; FluDeviceConfigAppCapturePlatform platform; FluDeviceConfigAppCaptureApi api; FluDeviceConfigAppCaptureInjectMode inject_mode; gchar *installation_dir; } FluDeviceConfigAppCapture;
Configuration structure for application capture devices.
Process ID of the application to capture |
||
FluDeviceConfigAppCapturePlatform |
||
Graphics API used by the application to capture |
||
FluDeviceConfigAppCaptureInjectMode |
Injection mode used to capture application |
|
Installation directory used to find the injector |
Generic configuration data for each configurable device type. Used only in FluDeviceConfig.
FluDeviceConfigAppCapture |
Configuration for application capture devices (use only if type is FLU_DEVICE_TYPE_APP_CAPTURE) |
typedef struct { FluDeviceType type; FluStreamInfo output_format; FluDeviceConfigData data; } FluDeviceConfig;
FluDeviceType |
The FluDeviceType of the device |
|
FluStreamInfo |
Configuration of the device output format |
|
FluDeviceConfigData |
Union providing type specific configuration |
typedef struct { } FluDevice;
An opaque structure representing a hardware device.
Obtain the list of available devices using flu_device_list_get()
and examine
each one through the different flu_device_*_get() methods.
You also receive an FluDevice in the