Top |
|
(*FluRecorderListener) () |
FluRecorder * | flu_recorder_new () |
FluRecorder * | flu_recorder_ref () |
|
flu_recorder_unref () |
|
flu_recorder_record () |
|
flu_recorder_pause () |
|
flu_recorder_stop () |
|
flu_recorder_streams_get () |
|
flu_recorder_video_streams_get () |
|
flu_recorder_audio_streams_get () |
|
flu_recorder_text_streams_get () |
FluStream * | flu_recorder_request_stream () |
FluStream * | flu_recorder_connect_device () |
|
flu_recorder_dot_graph_generate () |
const |
flu_recorder_state_name_get () |
FluRecorderState | flu_recorder_state_get () |
|
flu_recorder_event_listener_add () |
|
flu_recorder_event_listener_remove () |
|
flu_recorder_is_hardware_accelerated () |
gboolean (*FluRecorderListener) (FluRecorder *recorder
,FluRecorderEvent *event
,);
gpointer data
A recorder event listener definition
FluRecorder * flu_recorder_new (const FluMediaInfo *media_info
,);
GError **error
media_info |
The FluMediaInfo to use to describe the recording. |
[transfer none] |
error |
Pointer to a GError* pointer that will receive error info, or NULL Creates a new FluRecorder |
FluRecorder *
flu_recorder_ref (FluRecorder *thiz
);
Add a reference to an FluRecorder
void flu_recorder_unref (FluRecorder *thiz
);
Remove a reference from an FluRecorder
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.
thiz |
The FluRecorder used to start or continue recording |
|
error |
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 |
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).
GList * flu_recorder_streams_get (FluRecorder *thiz
);
Gets the list of requested streams
note: Use flu_stream_list_free()
to free the returned list
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
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
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
FluStream * flu_recorder_request_stream (FluRecorder *thiz
,const FluStreamInfo *info
,);
GError **error
Request a FluStream to push data to be recorded
FluStream * flu_recorder_connect_device (FluRecorder *thiz
,FluDevice *d
,const FluStreamInfo *info
,);
GError **error
thiz |
The recorder to connect the device to |
|
d |
The device to connect to |
|
info |
The stream information to use when recording from the device |
|
error |
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 |
void flu_recorder_dot_graph_generate (FluRecorder *thiz
,const
);gchar *filename
Outputs a DOT file representing the current pipeline
constgchar * flu_recorder_state_name_get (FluRecorderState state
);
Gets a readable name of a state
void flu_recorder_event_listener_add (FluRecorder *thiz
,FluRecorderEventType event
,FluRecorderListener listener
,);
gpointer data
Adds an event listener on a FluRecorder
thiz |
The FluRecorder to add the event listener to |
|
event |
The FluRecorderEvent to listen to |
|
listener |
The function to be called whenever an event is received. |
[scope notified] |
data |
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
thiz |
The FluRecorder to remove the event listener from |
|
event |
The FluRecorderEvent to stop listening |
|
listener |
The function used when adding a listener. |
[scope notified] |
data |
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