Recorder interface
gboolean |
|
FluRecorder * |
|
FluRecorder * |
|
void |
|
void |
|
void |
|
void |
|
GList * |
|
GList * |
|
GList * |
|
GList * |
|
FluStream * |
|
FluStream * |
|
void |
|
const gchar * |
|
FluRecorderState |
|
void |
|
void |
|
gboolean |
gboolean(*FluRecorderListener) (FluRecorder *recorder, FluRecorderEvent *event, gpointer data);
A recorder event listener definition
The recorder that triggered the event
The recorder event definition. You should cast to the specific recorder event data
The user data provided when registering the listener
FluRecorder * flu_recorder_new (const FluMediaInfo *media_info, GError **error);
Since: 1.0
The FluMediaInfo to use to describe the recording.
Pointer to a GError* pointer that will receive error info, or NULL Creates a new FluRecorder
The newly created recorder
FluRecorder * flu_recorder_ref (FluRecorder *thiz);
Add a reference to an FluRecorder
Since: 1.0
The recorder to be referenced
The same object, for programming convenience.
[transfer full]
void flu_recorder_unref (FluRecorder *thiz);
Remove a reference from an FluRecorder
Since: 1.0
The recorder to be unreferenced
void flu_recorder_record (FluRecorder *thiz, GError **error);
Starts recording with provided FluRecorder, or switches back to recording state if provided FluRecorder is currently paused.
Since: 1.0
The FluRecorder used to start or continue recording
Pass the address of a GError pointer to store back detailed information about any error that may occur while changing recording state. You can pass NULL to ignore detailed error reporting. If the returned value points to a valid GError instance, you will need to free it up using g_error_free().
void flu_recorder_pause (FluRecorder *thiz);
Pauses a recorder currently recording. The recording will be paused and the FLU_RECORDER_EVENT_STATE event will be triggered with a value of FLU_RECORDER_STATE_PAUSED (in case the recorder was in FLU_RECORDER_STATE_RECORDING state else no event is triggered).
Since: 1.1
void flu_recorder_stop (FluRecorder *thiz);
Stops current recording.
Since: 1.0
GList * flu_recorder_streams_get (FluRecorder *thiz);
Gets the list of requested streams note: Use flu_stream_list_free() to free the returned list
Since: 1.0
The list of requested streams.
[element-type FluStream][transfer full]
GList * flu_recorder_video_streams_get (FluRecorder *thiz);
Gets the list of requested video streams note: Use flu_stream_list_free() to free the returned list
Since: 1.0
The list of requested video streams.
[element-type FluStream][transfer full]
GList * flu_recorder_audio_streams_get (FluRecorder *thiz);
Gets the list of requested audio streams note: Use flu_stream_list_free() to free the returned list
Since: 1.0
The list of requested audio streams.
[element-type FluStream][transfer full]
GList * flu_recorder_text_streams_get (FluRecorder *thiz);
Gets the list of available text streams note: Use flu_stream_list_free() to free the returned list
Since: 1.0
The list of available text streams.
[element-type FluStream][transfer full]
FluStream * flu_recorder_request_stream (FluRecorder *thiz, const FluStreamInfo *info, GError **error);
Request a FluStream to push data to be recorded
Since: 1.0
The recorder to request the stream from
The stream information to be requested
Pointer to a GError* pointer that will receive error info, or NULL
The requested stream.
[transfer full]
FluStream * flu_recorder_connect_device (FluRecorder *thiz, FluDevice *d, const FluStreamInfo *info, GError **error);
Since: 1.0
The recorder to connect the device to
The device to connect to
The stream information to use when recording from the device
Pointer to a GError* pointer that will receive error info, or NULL Connect a FluDevice to a FluRecorder to grab all frames from the device
The requested stream from the device.
[transfer full]
void flu_recorder_dot_graph_generate (FluRecorder *thiz, const gchar *filename);
Outputs a DOT file representing the current pipeline
Since: 1.0
const gchar * flu_recorder_state_name_get (FluRecorderState state);
Gets a readable name of a state
Since: 1.1
A statically-allocated string
FluRecorderState flu_recorder_state_get (FluRecorder *thiz);
Since: 1.1
the FluRecorder current state
void flu_recorder_event_listener_add (FluRecorder *thiz, FluRecorderEventType event, FluRecorderListener listener, gpointer data);
Adds an event listener on a FluRecorder
Since: 1.0
The FluRecorder to add the event listener to
The FluRecorderEvent to listen to
The function to be called whenever an event is received.
The user provided data to be passed onto the listener
void flu_recorder_event_listener_remove (FluRecorder *thiz, FluRecorderEventType event, FluRecorderListener listener, gpointer data);
Removes an event listener on a FluRecorder
Since: 1.0
The FluRecorder to remove the event listener from
The FluRecorderEvent to stop listening
The function used when adding a listener.
The user provided data used when adding a listener
gboolean flu_recorder_is_hardware_accelerated (const FluStreamInfo *info);
Checks if the encoder will use hardware accelaration for the FluStreamInfo
Since: 1.1
The stream information
Whether the encoder will use hardware acceleration or not
typedef struct { } FluRecorder;
An opaque structure representing a media player instance.