Trait gstreamer_rtsp_server::subclass::prelude::RTSPMediaImpl
source · pub trait RTSPMediaImpl:
RTSPMediaImplExt
+ ObjectImpl
+ Send
+ Sync {
Show 17 methods
// Provided methods
fn handle_message(&self, message: &MessageRef) -> bool { ... }
fn prepare(&self, thread: &RTSPThread) -> Result<(), LoggableError> { ... }
fn unprepare(&self) -> Result<(), LoggableError> { ... }
fn suspend(&self) -> Result<(), LoggableError> { ... }
fn unsuspend(&self) -> Result<(), LoggableError> { ... }
fn query_position(&self) -> Option<ClockTime> { ... }
fn query_stop(&self) -> Option<ClockTime> { ... }
fn create_rtpbin(&self) -> Option<Element> { ... }
fn setup_rtpbin(&self, rtpbin: &Element) -> Result<(), LoggableError> { ... }
fn setup_sdp(
&self,
sdp: &mut SDPMessageRef,
info: &SDPInfo,
) -> Result<(), LoggableError> { ... }
fn new_stream(&self, stream: &RTSPStream) { ... }
fn removed_stream(&self, stream: &RTSPStream) { ... }
fn prepared(&self) { ... }
fn unprepared(&self) { ... }
fn target_state(&self, state: State) { ... }
fn new_state(&self, state: State) { ... }
fn handle_sdp(&self, sdp: &SDPMessageRef) -> Result<(), LoggableError> { ... }
}
Provided Methods§
sourcefn handle_message(&self, message: &MessageRef) -> bool
fn handle_message(&self, message: &MessageRef) -> bool
handle a message
sourcefn prepare(&self, thread: &RTSPThread) -> Result<(), LoggableError>
fn prepare(&self, thread: &RTSPThread) -> Result<(), LoggableError>
Prepare self
for streaming. This function will create the objects
to manage the streaming. A pipeline must have been set on self
with
RTSPMediaExtManual::take_pipeline()
.
It will preroll the pipeline and collect vital information about the streams such as the duration.
§thread
a RTSPThread
to run the
bus handler or None
§Returns
true
on success.
sourcefn unprepare(&self) -> Result<(), LoggableError>
fn unprepare(&self) -> Result<(), LoggableError>
sourcefn suspend(&self) -> Result<(), LoggableError>
fn suspend(&self) -> Result<(), LoggableError>
Suspend self
. The state of the pipeline managed by self
is set to
GST_STATE_NULL but all streams are kept. self
can be prepared again
with RTSPMediaExt::unsuspend()
self
must be prepared with RTSPMediaExt::prepare()
;
§Returns
true
on success.
sourcefn unsuspend(&self) -> Result<(), LoggableError>
fn unsuspend(&self) -> Result<(), LoggableError>
sourcefn query_position(&self) -> Option<ClockTime>
fn query_position(&self) -> Option<ClockTime>
query the current position in the pipeline
sourcefn query_stop(&self) -> Option<ClockTime>
fn query_stop(&self) -> Option<ClockTime>
query when playback will stop
fn create_rtpbin(&self) -> Option<Element>
fn setup_rtpbin(&self, rtpbin: &Element) -> Result<(), LoggableError>
sourcefn setup_sdp(
&self,
sdp: &mut SDPMessageRef,
info: &SDPInfo,
) -> Result<(), LoggableError>
fn setup_sdp( &self, sdp: &mut SDPMessageRef, info: &SDPInfo, ) -> Result<(), LoggableError>
fn new_stream(&self, stream: &RTSPStream)
fn removed_stream(&self, stream: &RTSPStream)
fn prepared(&self)
fn unprepared(&self)
fn target_state(&self, state: State)
fn new_state(&self, state: State)
sourcefn handle_sdp(&self, sdp: &SDPMessageRef) -> Result<(), LoggableError>
fn handle_sdp(&self, sdp: &SDPMessageRef) -> Result<(), LoggableError>
Object Safety§
This trait is not object safe.