Farsight2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations |
#include <gst/farsight/fs-conference-iface.h> FsConference; FsSession * fs_conference_new_session (FsConference *conference
,FsMediaType media_type
,GError **error
); FsParticipant * fs_conference_new_participant (FsConference *conference
,const gchar *cname
,GError **error
); #define FS_ERROR enum FsError; #define FS_ERROR_IS_FATAL (error)
This interface is implemented by the FsBaseConference base class element. A Farsight conference is a conversation space that takes place between 2 or more participants. Each conference must have one or more Farsight sessions that are associated to the conference participants. Different protocols simply need to derive from the FsBaseConference class and don't need to implement this interface directly.
This will communicate asynchronous events to the user through GstMessage of type GST_MESSAGE_ELEMENT sent over the GstBus.
farsight-error
" message1 2 3 4 |
"src-object" <GTKDOCLINK HREF="GObject">GObject</GTKDOCLINK> The object (<a class="link" href="FsConference.html" title="FsConference">FsConference</a>, <a class="link" href="farsight2-libs-fs-session.html#FsSession">FsSession</a> or <a class="link" href="FsStream.html" title="FsStream">FsStream</a>) that emitted the error "error-no" <a class="link" href="FsConference.html#FsError" title="enum FsError">FsError</a> The Error number "error-msg" <GTKDOCLINK HREF="gchar">gchar</GTKDOCLINK>* The error message "debug-msg" <GTKDOCLINK HREF="gchar">gchar</GTKDOCLINK>* The debug string |
The message is sent on asynchronous errors.
FsSession * fs_conference_new_session (FsConference *conference
,FsMediaType media_type
,GError **error
);
Create a new Farsight session for the given conference.
|
FsConference interface of a GstElement |
|
FsMediaType of the new session |
|
location of a GError, or NULL if no error occured |
Returns : |
the new FsSession that has been created. The FsSession must be unref'd by the user when closing the session. |
FsParticipant * fs_conference_new_participant (FsConference *conference
,const gchar *cname
,GError **error
);
Create a new Farsight Participant for the type of the given conference.
|
FsConference interface of a GstElement |
|
The cname of the participant |
|
location of a GError, or NULL if no error occured |
Returns : |
the new FsParticipant that has been created. The FsParticipant is owned by the user and he must unref it when he is done with it. |
#define FS_ERROR (fs_error_quark ())
This quark is used to denote errors coming from Farsight objects
typedef enum { FS_ERROR_CONSTRUCTION = 1, FS_ERROR_INTERNAL, FS_ERROR_INVALID_ARGUMENTS = 100, FS_ERROR_NETWORK, FS_ERROR_NOT_IMPLEMENTED, FS_ERROR_NEGOTIATION_FAILED, FS_ERROR_UNKNOWN_CODEC, FS_ERROR_UNKNOWN_CNAME, FS_ERROR_NO_CODECS, FS_ERROR_NO_CODECS_LEFT, FS_ERROR_CONNECTION_FAILED, FS_ERROR_DISPOSED, FS_ERROR_ALREADY_EXISTS } FsError;
This is the enum of error numbers that will come either on the "error" signal, from the Gst Bus or for error in the FS_ERROR domain in GErrors
Error constructing some of the sub-elements, this probably denotes an error in the installation of the gstreamer elements. It is a fatal error. | |
An internal error happened in Farsight, it may be in an inconsistent state. The object from which this error comes should be discarded. | |
Invalid arguments to the function, this is a programming error and should not be reported to the user | |
A network related error, this should probably be reported to the user. | |
The optional functionality is not implemented by this plugin. | |
The codec negotiation has failed, this means that there are no common codecs between the local and remote codecs. | |
Data is received on an unknown codec, this most likely denotes an error on the remote side, the buffers will be ignored. It can safely be ignored in most cases (but may result in a call with no media received). | |
Data was received for an unknown cname (DEPRECATED). | |
There are no codecs detected for that media type. | |
All of the codecs have been disabled by the codec preferences, one should try less strict codec preferences. | |
Could not connect to the to remote party. | |
The object has been disposed. | |
The object already exists |