Top | ![]() |
![]() |
![]() |
![]() |
GstSyncControlClientGstSyncControlClient — Interface for the implementation of the network transport used by GstSyncClient. |
The GstSyncControlClient interface allows users of this library to provide a custom implementation of the network transport that is used by clients to receive information required to set up synchronised playback.
The interface constists of:
The GstSyncControlClient:address and GstSyncControlClient:port properties to specify the network address for the client implementation to connect to.
The GstSyncControlServer:sync-info property which is first set up when the client connects, and then updated when updated information is received from the server.
The GstSyncControlClient::start and GstSyncControlClient::stop signals that are used to have the client connect to and disconnect from the server.
The specifics of how the connection to the server is established, and how data is received is entirely up to the implementation. It is expected that the server will use a corresponding GstSyncControlServer implementation.
gchar *
gst_sync_control_client_get_address (GstSyncControlClient *client
);
void gst_sync_control_client_set_address (GstSyncControlClient *client
,const gchar *address
);
Sets the network address to connect to.
guint
gst_sync_control_client_get_port (GstSyncControlClient *client
);
void gst_sync_control_client_set_port (GstSyncControlClient *client
,guint port
);
Sets the network port to connect to.
GstSyncServerInfo *
gst_sync_control_client_get_sync_info (GstSyncControlClient *client
);
“address”
property“address” gchar *
The network address for the control client to connect to.
Flags: Read / Write / Construct
Default value: NULL
“port”
property“port” gint
The network port for the control client to connect to.
Flags: Read / Write / Construct
Allowed values: [0,65535]
Default value: 0
“sync-info”
property“sync-info” GstSyncServerInfo *
Set when the client finishes connecting, and then whenever updated synchronisation information is received. The data is a GstSyncServerInfo, which is fairly easy to (de)serialise as JSON.
Flags: Read
“start”
signalgboolean user_function (GstSyncControlClient *arg0, gpointer arg1, gpointer user_data)
Connect to the specified server.
Flags: Action
“stop”
signalvoid user_function (GstSyncControlClient *arg0, gpointer user_data)
Disconnect to the specified server.
Flags: Action