Client
Object Hierarchy:
Description:
[
CCode ( cname =
"GstRTSPClient" , lower_case_cprefix =
"gst_rtsp_client_" , type_id =
"gst_rtsp_client_get_type ()" ) ]
[
GIR ( name =
"RTSPClient" ) ]
public class Client :
Object
The client object represents the connection and its state with a client.
Content:
Properties:
Creation methods:
Methods:
- public virtual StatusCode adjust_play_mode (Context context, TimeRange range, SeekFlags flags, double rate, ClockTime trickmode_interval, bool enable_rate_control)
called to give the application the possibility to adjust the range,
seek flags, rate and rate-control.
- public virtual StatusCode adjust_play_response (Context context)
called to give the implementation the possibility to adjust the
response to a play request, for example if extra headers were parsed when
adjust_play_mode was called.
- public uint attach (MainContext? context)
Attaches this to context
.
- public void close ()
Close the connection of this and
remove all media it was managing.
- public virtual bool configure_client_media (Media media, Stream stream, Context ctx)
called when the stream in media needs to be configured.
- public virtual bool configure_client_transport (Context ctx, Transport ct)
called when the client transport needs to be configured.
- public virtual Message create_sdp (Media media)
called when the SDP needs to be created for media.
- public Auth? get_auth ()
Get the Auth used
as the authentication manager of this.
- public unowned Connection? get_connection ()
- public uint get_content_length_limit ()
Get the Content-Length limit of this
.
- public MountPoints? get_mount_points ()
Get the
MountPoints object that this uses to manage its sessions.
- public SessionPool? get_session_pool ()
Get the
SessionPool object that this uses to manage its sessions.
- public unowned StreamTransport? get_stream_transport (uint8 channel)
This is useful when providing a send function through
set_send_func when doing RTSP over TCP: the send function must
call gst_rtsp_stream_transport_message_sent () on the appropriate transport when data has been received for streaming to continue.
- public ThreadPool? get_thread_pool ()
Get the
ThreadPool used as the thread pool of this.
- public Result handle_message (Message message)
Let the client handle message.
- public virtual bool handle_sdp (Context ctx, Media media, Message sdp)
- public virtual string make_path_from_uri (Url uri)
called to create path from uri.
- public virtual Result params_get (Context ctx)
get parameters.
- public virtual Result params_set (Context ctx)
set parameters.
- public List<Session> session_filter (ClientSessionFilterFunc? func)
Call func for each session managed by
this.
- public void set_auth (Auth? auth)
configure auth to be used as the authentication manager
of this.
- public bool set_connection (owned Connection conn)
- public void set_content_length_limit (uint limit)
Configure this to use the specified
Content-Length limit.
- public void set_mount_points (MountPoints? mounts)
Set mounts as the mount points for
this which it will use to map urls to media streams.
- public void set_send_func (owned ClientSendFunc func)
Set func as the callback that will be called when a new
message needs to be sent to the client.
- public void set_send_messages_func (owned ClientSendMessagesFunc func)
Set func as the callback that will be called when new
messages needs to be sent to the client.
- public void set_session_pool (SessionPool? pool)
Set pool as the sessionpool for
this which it will use to find or allocate sessions.
- public void set_thread_pool (ThreadPool? pool)
configure pool to be used as the thread pool of
this.
- public virtual void tunnel_http_response (Message request, Message response)
called when a response to the GET request is about to be sent for a
tunneled connection.
Signals:
Inherited Members:
All known members inherited from class GLib.Object