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§
Sourcefn create_sdp(&self, media: &RTSPMedia) -> Option<SDPMessage>
fn create_sdp(&self, media: &RTSPMedia) -> Option<SDPMessage>
called when the SDP needs to be created for media.
Sourcefn configure_client_media(
&self,
media: &RTSPMedia,
stream: &RTSPStream,
ctx: &RTSPContext,
) -> Result<(), LoggableError>
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.
Sourcefn params_set(&self, ctx: &RTSPContext) -> RTSPResult
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()
Sourcefn params_get(&self, ctx: &RTSPContext) -> RTSPResult
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()
Sourcefn make_path_from_uri(&self, url: &RTSPUrl) -> Option<GString>
fn make_path_from_uri(&self, url: &RTSPUrl) -> Option<GString>
called to create path from uri.
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
Sourcefn adjust_error_code(
&self,
ctx: &RTSPContext,
status_code: RTSPStatusCode,
) -> RTSPStatusCode
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
§code
§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.