gstreamer_rtsp_server::subclass::prelude

Trait RTSPClientImpl

Source
pub trait RTSPClientImpl:
    ObjectImpl
    + ObjectSubclass<Type: IsA<RTSPClient>>
    + Send
    + Sync {
Show 31 methods // Provided methods fn create_sdp(&self, media: &RTSPMedia) -> Option<SDPMessage> { ... } fn configure_client_media( &self, media: &RTSPMedia, stream: &RTSPStream, ctx: &RTSPContext, ) -> Result<(), LoggableError> { ... } fn params_set(&self, ctx: &RTSPContext) -> RTSPResult { ... } fn params_get(&self, ctx: &RTSPContext) -> RTSPResult { ... } fn make_path_from_uri(&self, url: &RTSPUrl) -> Option<GString> { ... } fn closed(&self) { ... } fn new_session(&self, session: &RTSPSession) { ... } fn options_request(&self, ctx: &RTSPContext) { ... } fn describe_request(&self, ctx: &RTSPContext) { ... } fn setup_request(&self, ctx: &RTSPContext) { ... } fn play_request(&self, ctx: &RTSPContext) { ... } fn pause_request(&self, ctx: &RTSPContext) { ... } fn teardown_request(&self, ctx: &RTSPContext) { ... } fn set_parameter_request(&self, ctx: &RTSPContext) { ... } fn parameter_request(&self, ctx: &RTSPContext) { ... } fn announce_request(&self, ctx: &RTSPContext) { ... } fn record_request(&self, ctx: &RTSPContext) { ... } fn handle_response(&self, ctx: &RTSPContext) { ... } fn handle_sdp( &self, ctx: &RTSPContext, media: &RTSPMedia, sdp: &SDPMessageRef, ) -> Result<(), LoggableError> { ... } fn check_requirements( &self, ctx: &RTSPContext, arr: &[String], ) -> Option<GString> { ... } fn pre_options_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_describe_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_setup_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_play_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_pause_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_teardown_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_set_parameter_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_get_parameter_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_announce_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn pre_record_request(&self, ctx: &RTSPContext) -> RTSPStatusCode { ... } fn adjust_error_code( &self, ctx: &RTSPContext, status_code: RTSPStatusCode, ) -> RTSPStatusCode { ... }
}

Provided Methods§

Source

fn create_sdp(&self, media: &RTSPMedia) -> Option<SDPMessage>

called when the SDP needs to be created for media.

Source

fn configure_client_media( &self, media: &RTSPMedia, stream: &RTSPStream, ctx: &RTSPContext, ) -> Result<(), LoggableError>

called when the stream in media needs to be configured. The default implementation will configure the blocksize on the payloader when spcified in the request headers.

Source

fn params_set(&self, ctx: &RTSPContext) -> RTSPResult

set parameters. This function should also initialize the RTSP response(ctx->response) via a call to gst_rtsp_message_init_response()

Source

fn params_get(&self, ctx: &RTSPContext) -> RTSPResult

get parameters. This function should also initialize the RTSP response(ctx->response) via a call to gst_rtsp_message_init_response()

Source

fn make_path_from_uri(&self, url: &RTSPUrl) -> Option<GString>

called to create path from uri.

Source

fn closed(&self)

Source

fn new_session(&self, session: &RTSPSession)

Source

fn options_request(&self, ctx: &RTSPContext)

Source

fn describe_request(&self, ctx: &RTSPContext)

Source

fn setup_request(&self, ctx: &RTSPContext)

Source

fn play_request(&self, ctx: &RTSPContext)

Source

fn pause_request(&self, ctx: &RTSPContext)

Source

fn teardown_request(&self, ctx: &RTSPContext)

Source

fn set_parameter_request(&self, ctx: &RTSPContext)

Source

fn parameter_request(&self, ctx: &RTSPContext)

Source

fn announce_request(&self, ctx: &RTSPContext)

Source

fn record_request(&self, ctx: &RTSPContext)

Source

fn handle_response(&self, ctx: &RTSPContext)

Source

fn handle_sdp( &self, ctx: &RTSPContext, media: &RTSPMedia, sdp: &SDPMessageRef, ) -> Result<(), LoggableError>

Source

fn check_requirements( &self, ctx: &RTSPContext, arr: &[String], ) -> Option<GString>

Source

fn pre_options_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_describe_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_setup_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_play_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_pause_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_teardown_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_set_parameter_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_get_parameter_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_announce_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn pre_record_request(&self, ctx: &RTSPContext) -> RTSPStatusCode

Source

fn adjust_error_code( &self, ctx: &RTSPContext, status_code: RTSPStatusCode, ) -> RTSPStatusCode

Called before sending error response to give the application the possibility to adjust the error code.

§ctx

a RTSPContext

§code

a gst_rtsp::RTSPStatusCode

§Returns

a gst_rtsp::RTSPStatusCode, containing the adjusted error code.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§