Top | ![]() |
![]() |
![]() |
![]() |
FarsightSessionFarsightSession — An object representing an audio/video session which may contain a number of streams. |
FarsightSession * | farsight_session_factory_make () |
const GList * | farsight_session_list_supported_codecs () |
FarsightStream * | farsight_session_create_stream () |
void | farsight_session_destroy () |
FarsightSession *
farsight_session_factory_make (const gchar *session_id
);
Called by the client to create a new farsight session object. It then initialises this object to the given session. The string given must be a valid session plugin that exists.
const GList *
farsight_session_list_supported_codecs
(FarsightSession *session
);
Lists all codecs this session is cabable of handling.
FarsightStream * farsight_session_create_stream (FarsightSession *session
,FarsightMediaType media_type
,FarsightStreamDirection dir
);
Creates a FarsightStream on this session.
session |
||
media_type |
a FarsightMediaType for this stream |
|
dir |
a FarsightStreamDirection for this stream |
void
farsight_session_destroy (FarsightSession *session
);
Destroy this session and all resources allocated by it. This function should be used instead of g_object_unref in order to destroy the session.
struct FarsightSession;
plugin
: pointer to plugin that implements this session
This represents a collection of streams that form a session with a single wallclock base.
struct FarsightSessionClass { GObjectClass parent_class; /*virtual methods */ G_CONST_RETURN GList * (* list_supported_codecs) (FarsightSession *session); FarsightStream * (* create_stream) (FarsightSession *session, FarsightMediaType media_type, FarsightStreamDirection dir); };
“error”
signalvoid user_function (FarsightSession *self, gint type, gchar *message, gpointer user_data)
This signal is emitted in any error condition
self |
FarsightSession that emmitted the signal |
|
type |
FarsightSessionError type of error |
|
message |
Error message |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last