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
[ GIR ( name = "RTSPClient" ) ]
public class Client : Object
The client object represents the connection and its state with a client.
All known sub-classes:
Namespace: Gst.RTSPServer
Package: gstreamer-rtsp-server-1.0
Content:
Properties:
- public bool drop_backlog { get; set; }
- public MountPoints mount_points { owned get; set; }
- public int post_session_timeout { get; set; }
- public SessionPool session_pool { owned get; set; }
Creation methods:
- public Client ()
Create a new Client instance.
Methods:
- public virtual StatusCode adjust_error_code (Context ctx, StatusCode code)
Called before sending error response to give the application the possibility to adjust the error code.
- public virtual StatusCode adjust_play_mode (Context context, TimeRange range, SeekFlags flags, double rate, ClockTime trickmode_interval, bool enable_rate_control)
- public virtual StatusCode adjust_play_response (Context context)
- 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)
- public virtual bool configure_client_transport (Context ctx, Transport ct)
- public virtual Message create_sdp (Media media)
- public Auth? get_auth ()
Get the Auth used as the authentication manager of this.
- public unowned Connection? get_connection ()
Get the Connection of this.
- 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)
- public virtual Result params_get (Context ctx)
- public virtual Result params_set (Context ctx)
- 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)
Set the Connection of this.
- 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)
Signals:
- public virtual signal void announce_request (Context ctx)
- public virtual signal string check_requirements (Context ctx, string[] arr)
- public virtual signal void closed ()
- public virtual signal void describe_request (Context ctx)
- public virtual signal void get_parameter_request (Context ctx)
- public virtual signal void handle_response (Context ctx)
- public virtual signal void new_session (Session session)
- public virtual signal void options_request (Context ctx)
- public virtual signal void pause_request (Context ctx)
- public virtual signal void play_request (Context ctx)
- public virtual signal StatusCode pre_announce_request (Context ctx)
- public virtual signal StatusCode pre_describe_request (Context ctx)
- public virtual signal StatusCode pre_get_parameter_request (Context ctx)
- public virtual signal StatusCode pre_options_request (Context ctx)
- public virtual signal StatusCode pre_pause_request (Context ctx)
- public virtual signal StatusCode pre_play_request (Context ctx)
- public virtual signal StatusCode pre_record_request (Context ctx)
- public virtual signal StatusCode pre_set_parameter_request (Context ctx)
- public virtual signal StatusCode pre_setup_request (Context ctx)
- public virtual signal StatusCode pre_teardown_request (Context ctx)
- public virtual signal void record_request (Context ctx)
- public virtual signal void send_message (Session ctx, Message response)
- public virtual signal void set_parameter_request (Context ctx)
- public virtual signal void setup_request (Context ctx)
- public virtual signal void teardown_request (Context ctx)
Inherited Members:
All known members inherited from class GLib.Object