![]() |
![]() |
![]() |
telepathy-glib Reference Manual | ![]() |
---|---|---|---|---|
TpMediaSessionHandler, TpMediaStreamHandlerTpMediaSessionHandler, TpMediaStreamHandler — proxy objects for Telepathy media streaming |
#include <telepathy-glib/media-interfaces.h> TpMediaSessionHandler* tp_media_session_handler_new (TpDBusDaemon *dbus, const gchar *unique_name, const gchar *object_path, GError **error); TpMediaSessionHandler; TpMediaSessionHandlerClass; TpMediaStreamHandler* tp_media_stream_handler_new (TpDBusDaemon *dbus, const gchar *unique_name, const gchar *object_path, GError **error); TpMediaStreamHandler; TpMediaStreamHandlerClass; void (*tp_cli_media_session_handler_callback_for_error) (TpMediaSessionHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_session_handler_call_error (TpMediaSessionHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, tp_cli_media_session_handler_callback_for_error callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_session_handler_run_error (TpMediaSessionHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, GError **error, GMainLoop **loop); void (*tp_cli_media_session_handler_callback_for_ready) (TpMediaSessionHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_session_handler_call_ready (TpMediaSessionHandler *proxy, gint timeout_ms, tp_cli_media_session_handler_callback_for_ready callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_session_handler_run_ready (TpMediaSessionHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop); void (*tp_cli_media_session_handler_signal_callback_new_stream_handler) (TpMediaSessionHandler *proxy, const gchar *arg_stream_handler, guint arg_id, guint arg_media_type, guint arg_direction, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_session_handler_connect_to_new_stream_handler (TpMediaSessionHandler *proxy, tp_cli_media_session_handler_signal_callback_new_stream_handler callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_callback_for_codec_choice) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_codec_choice (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_codec_id, tp_cli_media_stream_handler_callback_for_codec_choice callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_codec_choice (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_codec_id, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_error) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_error (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, tp_cli_media_stream_handler_callback_for_error callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_error (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_native_candidates_prepared) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_native_candidates_prepared (TpMediaStreamHandler *proxy, gint timeout_ms, tp_cli_media_stream_handler_callback_for_native_candidates_prepared callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_native_candidates_prepared (TpMediaStreamHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_new_active_candidate_pair) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_new_active_candidate_pair (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_native_candidate_id, const gchar *in_remote_candidate_id, tp_cli_media_stream_handler_callback_for_new_active_candidate_pair callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_new_active_candidate_pair (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_native_candidate_id, const gchar *in_remote_candidate_id, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_new_native_candidate) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_new_native_candidate (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_candidate_id, const GPtrArray *in_transports, tp_cli_media_stream_handler_callback_for_new_native_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_new_native_candidate (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_candidate_id, const GPtrArray *in_transports, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_ready) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_ready (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_ready callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_ready (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_set_local_codecs) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_set_local_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_set_local_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_set_local_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_stream_state) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_stream_state (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_state, tp_cli_media_stream_handler_callback_for_stream_state callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_stream_state (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_state, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_callback_for_supported_codecs) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_supported_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_supported_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); gboolean tp_cli_media_stream_handler_run_supported_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_signal_callback_add_remote_candidate) (TpMediaStreamHandler *proxy, const gchar *arg_candidate_id, const GPtrArray *arg_transports, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_add_remote_candidate (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_add_remote_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_close) (TpMediaStreamHandler *proxy, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_close (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_close callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_remove_remote_candidate) (TpMediaStreamHandler *proxy, const gchar *arg_candidate_id, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_remove_remote_candidate (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_remove_remote_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_set_active_candidate_pair) (TpMediaStreamHandler *proxy, const gchar *arg_native_candidate_id, const gchar *arg_remote_candidate_id, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_active_candidate_pair (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_active_candidate_pair callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_set_remote_candidate_list) (TpMediaStreamHandler *proxy, const GPtrArray *arg_remote_candidates, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_remote_candidate_list (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_remote_candidate_list callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_set_remote_codecs) (TpMediaStreamHandler *proxy, const GPtrArray *arg_codecs, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_remote_codecs (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_remote_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_set_stream_playing) (TpMediaStreamHandler *proxy, gboolean arg_playing, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_playing (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_playing callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_set_stream_sending) (TpMediaStreamHandler *proxy, gboolean arg_sending, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_sending (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_sending callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_start_telephony_event) (TpMediaStreamHandler *proxy, guchar arg_event, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_start_telephony_event (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_start_telephony_event callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); void (*tp_cli_media_stream_handler_signal_callback_stop_telephony_event) (TpMediaStreamHandler *proxy, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_stop_telephony_event (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_stop_telephony_event callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); TpProxyPendingCall* tp_cli_media_stream_handler_call_hold_state (TpMediaStreamHandler *proxy, gint timeout_ms, gboolean in_Held, tp_cli_media_stream_handler_callback_for_hold_state callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); TpProxyPendingCall* tp_cli_media_stream_handler_call_unhold_failure (TpMediaStreamHandler *proxy, gint timeout_ms, tp_cli_media_stream_handler_callback_for_unhold_failure callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); void (*tp_cli_media_stream_handler_callback_for_hold_state) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); void (*tp_cli_media_stream_handler_callback_for_unhold_failure) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object); TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_held (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_held callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error); gboolean tp_cli_media_stream_handler_run_hold_state (TpMediaStreamHandler *proxy, gint timeout_ms, gboolean in_Held, GError **error, GMainLoop **loop); gboolean tp_cli_media_stream_handler_run_unhold_failure (TpMediaStreamHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop); void (*tp_cli_media_stream_handler_signal_callback_set_stream_held) (TpMediaStreamHandler *proxy, gboolean arg_Held, gpointer user_data, GObject *weak_object);
GObject +----TpProxy +----TpMediaSessionHandler
GObject +----TpProxy +----TpMediaStreamHandler
This module provides access to the auxiliary objects used to implement TpSvcChannelTypeStreamedMedia.
TpMediaSessionHandler* tp_media_session_handler_new (TpDBusDaemon *dbus, const gchar *unique_name, const gchar *object_path, GError **error);
|
a D-Bus daemon; may not be NULL
|
|
the unique name of the connection process; may not be NULL
or a well-known name
|
|
the object path of the media session handler; may not be NULL
|
|
used to indicate the error if NULL is returned
|
Returns : |
a new media session handler proxy, or NULL on invalid arguments
|
Since 0.7.1
typedef struct _TpMediaSessionHandler TpMediaSessionHandler;
A proxy object for a Telepathy connection manager.
Since 0.7.1
typedef struct _TpMediaSessionHandlerClass TpMediaSessionHandlerClass;
The class of a TpMediaSessionHandler.
Since 0.7.1
TpMediaStreamHandler* tp_media_stream_handler_new (TpDBusDaemon *dbus, const gchar *unique_name, const gchar *object_path, GError **error);
|
a D-Bus daemon; may not be NULL
|
|
the unique name of the connection process; may not be NULL
or a well-known name
|
|
the object path of the media stream handler; may not be NULL
|
|
used to indicate the error if NULL is returned
|
Returns : |
a new media stream handler proxy, or NULL on invalid arguments
|
Since 0.7.1
typedef struct _TpMediaStreamHandler TpMediaStreamHandler;
A proxy object for a Telepathy connection manager.
Since 0.7.1
typedef struct _TpMediaStreamHandlerClass TpMediaStreamHandlerClass;
The class of a TpMediaStreamHandler.
Since 0.7.1
void (*tp_cli_media_session_handler_callback_for_error) (TpMediaSessionHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a Error method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_session_handler_call_error (TpMediaSessionHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, tp_cli_media_session_handler_callback_for_error callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a Error method call.
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. Instead the Error function should be used on the relevant MediaStreamHandler objects. Informs the connection manager that an error occured in this session. If used, the connection manager must terminate the session and all of the streams within it, and may also emit a StreamError signal on the channel for each stream within the session.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: (Undocumented) |
|
Used to pass an 'in' argument: (Undocumented) |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_session_handler_run_error (TpMediaSessionHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, GError **error, GMainLoop **loop);
Call the method Error and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
THIS METHOD IS DEPRECATED AND SHOULD NOT BE USED. Instead the Error function should be used on the relevant MediaStreamHandler objects. Informs the connection manager that an error occured in this session. If used, the connection manager must terminate the session and all of the streams within it, and may also emit a StreamError signal on the channel for each stream within the session.
|
A TpMediaSessionHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: (Undocumented) |
|
Used to pass an 'in' argument: (Undocumented) |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_session_handler_callback_for_ready) (TpMediaSessionHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a Ready method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_session_handler_call_ready (TpMediaSessionHandler *proxy, gint timeout_ms, tp_cli_media_session_handler_callback_for_ready callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a Ready method call.
Inform the connection manager that a client is ready to handle this session handler (i.e. that it has connected to the NewStreamHandler signal and done any other necessary setup).
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_session_handler_run_ready (TpMediaSessionHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop);
Call the method Ready and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform the connection manager that a client is ready to handle this session handler (i.e. that it has connected to the NewStreamHandler signal and done any other necessary setup).
|
A TpMediaSessionHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_session_handler_signal_callback_new_stream_handler) (TpMediaSessionHandler *proxy, const gchar *arg_stream_handler, guint arg_id, guint arg_media_type, guint arg_direction, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal NewStreamHandler.
|
The proxy on which tp_cli_media_session_handler_connect_to_new_stream_handler()
was called
|
|
An object path to a new MediaStreamHandler |
|
The unique ID of the new stream |
|
Enum for type of media that this stream should handle (a value from MediaStreamType) |
|
Enum for direction of this stream (a value from MediaStreamDirection) |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_session_handler_connect_to_new_stream_handler (TpMediaSessionHandler *proxy, tp_cli_media_session_handler_signal_callback_new_stream_handler callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal NewStreamHandler.
Emitted when a new stream handler has been created for this session.
|
A TpMediaSessionHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_callback_for_codec_choice) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a CodecChoice method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_codec_choice (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_codec_id, tp_cli_media_stream_handler_callback_for_codec_choice callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a CodecChoice method call.
Inform the connection manager of the current codec choice.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: (Undocumented) |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_codec_choice (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_codec_id, GError **error, GMainLoop **loop);
Call the method CodecChoice and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform the connection manager of the current codec choice.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: (Undocumented) |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_error) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a Error method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_error (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, tp_cli_media_stream_handler_callback_for_error callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a Error method call.
Inform the connection manager that an error occured in this stream. The connection manager should emit the StreamError signal for the stream on the relevant channel, and remove the stream from the session.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: ID of error, from the MediaStreamError enumeration |
|
Used to pass an 'in' argument: String describing the error |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_error (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_errno, const gchar *in_message, GError **error, GMainLoop **loop);
Call the method Error and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform the connection manager that an error occured in this stream. The connection manager should emit the StreamError signal for the stream on the relevant channel, and remove the stream from the session.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: ID of error, from the MediaStreamError enumeration |
|
Used to pass an 'in' argument: String describing the error |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_native_candidates_prepared) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a NativeCandidatesPrepared method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_native_candidates_prepared (TpMediaStreamHandler *proxy, gint timeout_ms, tp_cli_media_stream_handler_callback_for_native_candidates_prepared callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a NativeCandidatesPrepared method call.
Informs the connection manager that all possible native candisates have been discovered for the moment.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_native_candidates_prepared (TpMediaStreamHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop);
Call the method NativeCandidatesPrepared and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Informs the connection manager that all possible native candisates have been discovered for the moment.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_new_active_candidate_pair) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a NewActiveCandidatePair method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_new_active_candidate_pair (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_native_candidate_id, const gchar *in_remote_candidate_id, tp_cli_media_stream_handler_callback_for_new_active_candidate_pair callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a NewActiveCandidatePair method call.
Informs the connection manager that a valid candidate pair has been discovered and streaming is in progress.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: (Undocumented) |
|
Used to pass an 'in' argument: (Undocumented) |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_new_active_candidate_pair (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_native_candidate_id, const gchar *in_remote_candidate_id, GError **error, GMainLoop **loop);
Call the method NewActiveCandidatePair and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Informs the connection manager that a valid candidate pair has been discovered and streaming is in progress.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: (Undocumented) |
|
Used to pass an 'in' argument: (Undocumented) |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_new_native_candidate) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a NewNativeCandidate method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_new_native_candidate (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_candidate_id, const GPtrArray *in_transports, tp_cli_media_stream_handler_callback_for_new_native_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a NewNativeCandidate method call.
Inform this MediaStreamHandler that a new native transport candidate has been ascertained.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: String identifier for this candidate |
|
Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> Array of transports for this candidate, with fields: <ul> <li>component number</li> <li>IP address (as a string)</li> <li>port</li> <li>base network protocol (one of the values of MediaStreamBaseProto)</li> <li>proto subtype (e.g. RTP)</li> <li>proto profile (e.g. AVP)</li> <li>our preference value of this transport (double in range 0.0-1.0 inclusive); 1 signals the most preferred transport</li> <li>transport type, one of the values of MediaStreamTransportType</li> <li>username if authentication is required</li> <li>password if authentication is required</li> </ul> |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_new_native_candidate (TpMediaStreamHandler *proxy, gint timeout_ms, const gchar *in_candidate_id, const GPtrArray *in_transports, GError **error, GMainLoop **loop);
Call the method NewNativeCandidate and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform this MediaStreamHandler that a new native transport candidate has been ascertained.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: String identifier for this candidate |
|
Used to pass an 'in' argument: <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> Array of transports for this candidate, with fields: <ul> <li>component number</li> <li>IP address (as a string)</li> <li>port</li> <li>base network protocol (one of the values of MediaStreamBaseProto)</li> <li>proto subtype (e.g. RTP)</li> <li>proto profile (e.g. AVP)</li> <li>our preference value of this transport (double in range 0.0-1.0 inclusive); 1 signals the most preferred transport</li> <li>transport type, one of the values of MediaStreamTransportType</li> <li>username if authentication is required</li> <li>password if authentication is required</li> </ul> |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_ready) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a Ready method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_ready (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_ready callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a Ready method call.
Inform the connection manager that a client is ready to handle this StreamHandler. Also provide it with info about all supported codecs.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: As for SupportedCodecs. |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_ready (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop);
Call the method Ready and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform the connection manager that a client is ready to handle this StreamHandler. Also provide it with info about all supported codecs.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: As for SupportedCodecs. |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_set_local_codecs) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a SetLocalCodecs method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_set_local_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_set_local_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a SetLocalCodecs method call.
Used to provide codecs after Ready()
, so the media client can go ready for an incoming call and exchange candidates/codecs before knowing what local codecs are available.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: Codecs in the same format as for SupportedCodecs, which have the same semantics as the local codecs passed to Ready |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_set_local_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop);
Call the method SetLocalCodecs and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Used to provide codecs after Ready()
, so the media client can go ready for an incoming call and exchange candidates/codecs before knowing what local codecs are available.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: Codecs in the same format as for SupportedCodecs, which have the same semantics as the local codecs passed to Ready |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_stream_state) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a StreamState method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_stream_state (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_state, tp_cli_media_stream_handler_callback_for_stream_state callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a StreamState method call.
Informs the connection manager of the stream's current state, as as specified in Channel.Type.StreamedMedia::ListStreams.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: (Undocumented) |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_stream_state (TpMediaStreamHandler *proxy, gint timeout_ms, guint in_state, GError **error, GMainLoop **loop);
Call the method StreamState and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Informs the connection manager of the stream's current state, as as specified in Channel.Type.StreamedMedia::ListStreams.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: (Undocumented) |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_callback_for_supported_codecs) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a SupportedCodecs method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxyPendingCall* tp_cli_media_stream_handler_call_supported_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, tp_cli_media_stream_handler_callback_for_supported_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a SupportedCodecs method call.
Inform the connection manager of the supported codecs for this session. This is called after the connection manager has emitted SetRemoteCodecs to notify what codecs are supported by the peer, and will thus be an intersection of all locally supported codecs (passed to Ready) and those supported by the peer.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: List of codec info structures, each containing: <ul> <li>ID of codec</li> <li>Codec name</li> <li>Media type</li> <li>Clock rate of codec</li> <li>Number of supported channels</li> <li>String key-value pairs for supported optional parameters</li> </ul> |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
gboolean tp_cli_media_stream_handler_run_supported_codecs (TpMediaStreamHandler *proxy, gint timeout_ms, const GPtrArray *in_codecs, GError **error, GMainLoop **loop);
Call the method SupportedCodecs and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Inform the connection manager of the supported codecs for this session. This is called after the connection manager has emitted SetRemoteCodecs to notify what codecs are supported by the peer, and will thus be an intersection of all locally supported codecs (passed to Ready) and those supported by the peer.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: List of codec info structures, each containing: <ul> <li>ID of codec</li> <li>Codec name</li> <li>Media type</li> <li>Clock rate of codec</li> <li>Number of supported channels</li> <li>String key-value pairs for supported optional parameters</li> </ul> |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_signal_callback_add_remote_candidate) (TpMediaStreamHandler *proxy, const gchar *arg_candidate_id, const GPtrArray *arg_transports, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal AddRemoteCandidate.
|
The proxy on which tp_cli_media_stream_handler_connect_to_add_remote_candidate()
was called
|
|
String identifier for this candidate |
|
Array of transports for this candidate with fields, as defined in NewNativeCandidate |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_add_remote_candidate (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_add_remote_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal AddRemoteCandidate.
Signal emitted when the connection manager wishes to inform the client of a new remote candidate.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_close) (TpMediaStreamHandler *proxy, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal Close.
|
The proxy on which tp_cli_media_stream_handler_connect_to_close()
was called
|
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_close (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_close callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal Close.
Signal emitted when the connection manager wishes the stream to be closed.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_remove_remote_candidate) (TpMediaStreamHandler *proxy, const gchar *arg_candidate_id, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal RemoveRemoteCandidate.
|
The proxy on which tp_cli_media_stream_handler_connect_to_remove_remote_candidate()
was called
|
|
String identifier for remote candidate to drop |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_remove_remote_candidate (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_remove_remote_candidate callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal RemoveRemoteCandidate.
Signal emitted when the connection manager wishes to inform the client that the remote end has removed a previously usable candidate.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_set_active_candidate_pair) (TpMediaStreamHandler *proxy, const gchar *arg_native_candidate_id, const gchar *arg_remote_candidate_id, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetActiveCandidatePair.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_active_candidate_pair()
was called
|
|
(Undocumented) |
|
(Undocumented) |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_active_candidate_pair (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_active_candidate_pair callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetActiveCandidatePair.
Emitted by the connection manager to inform the client that a valid candidate pair has been discovered by the remote end and streaming is in progress.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_set_remote_candidate_list) (TpMediaStreamHandler *proxy, const GPtrArray *arg_remote_candidates, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetRemoteCandidateList.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_remote_candidate_list()
was called
|
|
A list of candidate id and a list of transports as defined in NewNativeCandidate |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_remote_candidate_list (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_remote_candidate_list callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetRemoteCandidateList.
Signal emitted when the connection manager wishes to inform the client of all the available remote candidates at once.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_set_remote_codecs) (TpMediaStreamHandler *proxy, const GPtrArray *arg_codecs, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetRemoteCodecs.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_remote_codecs()
was called
|
|
As for SupportedCodecs |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_remote_codecs (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_remote_codecs callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetRemoteCodecs.
Signal emitted when the connection manager wishes to inform the client of the codecs supported by the remote end.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_set_stream_playing) (TpMediaStreamHandler *proxy, gboolean arg_playing, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetStreamPlaying.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_stream_playing()
was called
|
|
(Undocumented) |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_playing (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_playing callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetStreamPlaying.
Signal emitted when the connection manager wishes to set the stream playing or stopped.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_set_stream_sending) (TpMediaStreamHandler *proxy, gboolean arg_sending, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetStreamSending.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_stream_sending()
was called
|
|
(Undocumented) |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_sending (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_sending callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetStreamSending.
Signal emitted when the connection manager wishes to set whether or not the stream sends to the remote end.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_start_telephony_event) (TpMediaStreamHandler *proxy, guchar arg_event, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal StartTelephonyEvent.
|
The proxy on which tp_cli_media_stream_handler_connect_to_start_telephony_event()
was called
|
|
A telephony event code as defined by RFC 4733. |
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_start_telephony_event (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_start_telephony_event callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal StartTelephonyEvent.
Request that a telephony event (as defined by RFC 4733) is transmitted over this stream until StopTelephonyEvent is called.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
void (*tp_cli_media_stream_handler_signal_callback_stop_telephony_event) (TpMediaStreamHandler *proxy, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal StopTelephonyEvent.
|
The proxy on which tp_cli_media_stream_handler_connect_to_stop_telephony_event()
was called
|
|
User-supplied data |
|
User-supplied weakly referenced object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_stop_telephony_event (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_stop_telephony_event callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal StopTelephonyEvent.
Request that any ongoing telephony events (as defined by RFC 4733) being transmitted over this stream are stopped.
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
TpProxyPendingCall* tp_cli_media_stream_handler_call_hold_state (TpMediaStreamHandler *proxy, gint timeout_ms, gboolean in_Held, tp_cli_media_stream_handler_callback_for_hold_state callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a HoldState method call.
Notify the connection manager that the stream's hold state has been changed successfully in response to SetStreamHeld.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
Used to pass an 'in' argument: If true, the stream is now on hold. |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
TpProxyPendingCall* tp_cli_media_stream_handler_call_unhold_failure (TpMediaStreamHandler *proxy, gint timeout_ms, tp_cli_media_stream_handler_callback_for_unhold_failure callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
Start a UnholdFailure method call.
Notify the connection manager that an attempt to reacquire the necessary hardware or software resources to unhold the stream, in response to SetStreamHeld, has failed.
|
the TpProxy |
|
the timeout in milliseconds, or -1 to use the default |
|
called when the method call succeeds or fails |
|
user-supplied data passed to the callback |
|
called with the user_data as argument, after the call has succeeded, failed or been cancelled |
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
Returns : |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid. |
void (*tp_cli_media_stream_handler_callback_for_hold_state) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a HoldState method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
void (*tp_cli_media_stream_handler_callback_for_unhold_failure) (TpMediaStreamHandler *proxy, const GError *error, gpointer user_data, GObject *weak_object);
Signature of the callback called when a UnholdFailure method call succeeds or fails.
|
the proxy on which the call was made |
|
NULL on success, or an error on failure
|
|
user-supplied data |
|
user-supplied object |
TpProxySignalConnection* tp_cli_media_stream_handler_connect_to_set_stream_held (TpMediaStreamHandler *proxy, tp_cli_media_stream_handler_signal_callback_set_stream_held callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object, GError **error);
Connect a handler to the signal SetStreamHeld.
Emitted when the connection manager wishes to place the stream on hold (so the streaming client should free hardware or software resources) or take the stream off hold (so the streaming client should reacquire the necessary resources).
|
A TpMediaStreamHandler or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned
|
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid.
|
gboolean tp_cli_media_stream_handler_run_hold_state (TpMediaStreamHandler *proxy, gint timeout_ms, gboolean in_Held, GError **error, GMainLoop **loop);
Call the method HoldState and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Notify the connection manager that the stream's hold state has been changed successfully in response to SetStreamHeld.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
Used to pass an 'in' argument: If true, the stream is now on hold. |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
gboolean tp_cli_media_stream_handler_run_unhold_failure (TpMediaStreamHandler *proxy, gint timeout_ms, GError **error, GMainLoop **loop);
Call the method UnholdFailure and run the main loop until it returns. Before calling this method, you must add a reference to any borrowed objects you need to keep, and generally ensure that everything is in a consistent state.
Notify the connection manager that an attempt to reacquire the necessary hardware or software resources to unhold the stream, in response to SetStreamHeld, has failed.
|
A TpMediaStreamHandler or subclass |
|
Timeout in milliseconds, or -1 for default |
|
If not NULL , used to return errors if FALSE
is returned
|
|
If not NULL , set before re-entering
the main loop, to point to a GMainLoop
which can be used to cancel this call with
g_main_loop_quit() , causing a return of
FALSE with error set to TP_DBUS_ERROR_CANCELLED
|
Returns : |
TRUE on success, FALSE and sets error on error
|
void (*tp_cli_media_stream_handler_signal_callback_set_stream_held) (TpMediaStreamHandler *proxy, gboolean arg_Held, gpointer user_data, GObject *weak_object);
Represents the signature of a callback for the signal SetStreamHeld.
|
The proxy on which tp_cli_media_stream_handler_connect_to_set_stream_held()
was called
|
|
If true, the stream is to be placed on hold. |
|
User-supplied data |
|
User-supplied weakly referenced object |