Core

Description

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 capture or DVD drives, which do not map nicely to URIs in most cases.

FluListener ()

gboolean(*FluListener) (gpointer event, gpointer data);

An event listener definition

Parameters

event

The event definition. You should cast to the specific event type and copy any data you intend to use after the callback returns.

data

The user provided data

Returns

TRUE if event propagation should continue and call other listeners or FALSE otherwise

flu_event_listener_add ()

void flu_event_listener_add (FluEventType event, FluListener listener, gpointer data);

Adds a system-wide event listener

Parameters

event

The FluEventType to listen

listener

The function to be called whenever an event is received

data

The user provided data to be passed to the listener

flu_event_listener_remove ()

void flu_event_listener_remove (FluEventType event, FluListener listener, gpointer data);

Removes a system-wide event listener

Parameters

event

The FluEventType to stop listening to

listener

The function used when adding the listener

data

The user provided data used when adding the listener

Types and Values

enum FluEventType

FLU_EVENT_TYPE_NEW_MEDIA_AVAILABLE

New media is available, i.e. a DVD disc has been inserted

FLU_EVENT_TYPE_MEDIA_REMOVED

Some media is no longer available, i.e. a DVD disc has been ejected Enum values used to describe different type of events that can be raised by the Fluendo SDK library.

FluEventNewMediaAvailable

typedef struct _FluDevice FluEventNewMediaAvailable;

Struct used for the FLU_EVENT_TYPE_NEW_MEDIA_AVAILABLE event

FluEventMediaRemoved

typedef struct _FluDevice FluEventMediaRemoved;

Struct used for the FLU_EVENT_TYPE_MEDIA_REMOVED event

enum FluBufferingPolicy

Enum values used to describe the different buffering policies available

FLU_BUFFERING_POLICY_NONE

No buffering is done. In this case the _FluPlayerEventBuffering will not be sent to the application.

FLU_BUFFERING_POLICY_NORMAL

Normal operation

FLU_ERROR

#define FLU_ERROR flu_error_quark ()

FLU_TIME_NONE

#define FLU_TIME_NONE ((guint64) -1)

FLU_SIZE_UNKNOWN

#define FLU_SIZE_UNKNOWN ((gsize) -1)