pub trait RTSPMediaImpl:
ObjectImpl
+ ObjectSubclass<Type: IsA<RTSPMedia>>
+ 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>
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.