Top |
gboolean | can-request-receiving | Read |
TpConnection * | connection | Read / Write / Construct Only |
TpCallContent * | content | Read / Write / Construct Only |
guint | local-sending-state | Read |
TpCallStream is a sub-class of TpProxy providing convenient API to represent TpCallChannel's stream.
gboolean
tp_call_stream_can_request_receiving (TpCallStream *self
);
Since 0.17.5
TpSendingState
tp_call_stream_get_local_sending_state
(TpCallStream *self
);
Since 0.17.5
GHashTable *
tp_call_stream_get_remote_members (TpCallStream *self
);
Get the remote contacts to who this stream is connected, mapped to their sending state.
It is NOT guaranteed that TpContact objects have any feature prepared.
GHashTable mapping TpContact to its new TpSendingState.
[transfer none][type GLib.HashTable][element-type TelepathyGLib.Contact uint]
Since 0.17.5
void tp_call_stream_request_receiving_async (TpCallStream *self
,TpContact *contact
,gboolean receive
,GAsyncReadyCallback callback
,gpointer user_data
);
Request that a remote contact stops or starts sending on this stream.
The “can-request-receiving” property defines whether the protocol allows the local user to request the other side start sending on this stream.
If receive
is TRUE
, request that the given contact starts to send media.
If receive
is FALSE
, request that the given contact stops sending media.
self |
||
contact |
contact from which sending is requested |
|
receive |
the requested receiving state |
|
callback |
a callback to call when the operation finishes |
|
user_data |
data to pass to |
Since 0.17.5
gboolean tp_call_stream_request_receiving_finish (TpCallStream *self
,GAsyncResult *result
,GError **error
);
Finishes tp_call_stream_request_receiving_async()
.
Since 0.17.5
void tp_call_stream_set_sending_async (TpCallStream *self
,gboolean send
,GAsyncReadyCallback callback
,gpointer user_data
);
Set the stream to start or stop sending media from the local user to other contacts.
If send
is TRUE
, “local-sending-state” should change to
TP_SENDING_STATE_SENDING
, if it isn't already.
If send
is FALSE
, “local-sending-state” should change to
TP_SENDING_STATE_NONE
, if it isn't already.
self |
||
send |
the requested sending state |
|
callback |
a callback to call when the operation finishes |
|
user_data |
data to pass to |
Since 0.17.5
gboolean tp_call_stream_set_sending_finish (TpCallStream *self
,GAsyncResult *result
,GError **error
);
Finishes tp_call_stream_set_sending_async()
.
Since 0.17.5
#define TP_CALL_STREAM_FEATURE_CORE
Expands to a call to a function that returns a quark for the "core" feature on a TpCallStream.
One can ask for a feature to be prepared using the tp_proxy_prepare_async()
function, and waiting for it to trigger the callback.
“can-request-receiving”
property“can-request-receiving” gboolean
If TRUE
, the user can request that a remote contact starts sending on this
stream.
Flags: Read
Default value: FALSE
Since 0.17.5
“connection”
property“connection” TpConnection *
The TpConnection of the call.
Flags: Read / Write / Construct Only
Since 0.17.5
“content”
property“content” TpCallContent *
The Content that this streams belongs to
Flags: Read / Write / Construct Only
Since 0.17.6
“local-sending-state”
property“local-sending-state” guint
The local user's sending state, from TpSendingState.
Flags: Read
Default value: 0
Since 0.17.5
“local-sending-state-changed”
signalvoid user_function (TpCallStream *self, guint state, TpCallStateReason *reason, gpointer user_data)
The ::local-sending-state-changed signal is emitted whenever the stream sending state changes.
self |
the TpCallStream |
|
state |
the new TpSendingState |
|
reason |
the TpCallStateReason for the change |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since 0.17.5
“remote-members-changed”
signalvoid user_function (TpCallStream *self, GHashTable *updates, GPtrArray *removed, TpCallStateReason *reason, gpointer user_data)
The ::remote-members-changed signal is emitted whenever the stream's remote members changes.
It is NOT guaranteed that TpContact objects have any feature prepared.
self |
the TpCallStream |
|
updates |
GHashTable mapping TpContact to its new TpSendingState. |
[type GLib.HashTable][element-type TelepathyGLib.Contact uint] |
removed |
[type GLib.PtrArray][element-type TelepathyGLib.Contact] | |
reason |
the TpCallStateReason for the change |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since 0.17.5