Enum retina::client::InitialTimestampPolicy
source · pub enum InitialTimestampPolicy {
Default,
Require,
Ignore,
Permissive,
}
Expand description
Policy for handling the rtptime
parameter normally seen in the RTP-Info
header.
This parameter is used to map each stream’s RTP timestamp to NPT (“normal play time”),
allowing multiple streams to be played in sync.
Variants§
Default
Default policy: currently Require
when playing multiple streams,
Ignore
otherwise.
Require
Require the rtptime
parameter be present and use it to set NPT. Use
when accurate multi-stream NPT is important.
Ignore
Ignore the rtptime
parameter and assume the first received packet for
each stream is at NPT 0. Use with cameras that are known to set
rtptime
incorrectly.
Permissive
Use the rtptime
parameter when playing multiple streams if it’s
specified for all of them; otherwise assume the first received packet
for each stream is at NPT 0.
Trait Implementations§
source§impl Clone for InitialTimestampPolicy
impl Clone for InitialTimestampPolicy
source§fn clone(&self) -> InitialTimestampPolicy
fn clone(&self) -> InitialTimestampPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InitialTimestampPolicy
impl Debug for InitialTimestampPolicy
source§impl Default for InitialTimestampPolicy
impl Default for InitialTimestampPolicy
source§fn default() -> InitialTimestampPolicy
fn default() -> InitialTimestampPolicy
Returns the “default value” for a type. Read more
source§impl Display for InitialTimestampPolicy
impl Display for InitialTimestampPolicy
source§impl FromStr for InitialTimestampPolicy
impl FromStr for InitialTimestampPolicy
impl Copy for InitialTimestampPolicy
Auto Trait Implementations§
impl Freeze for InitialTimestampPolicy
impl RefUnwindSafe for InitialTimestampPolicy
impl Send for InitialTimestampPolicy
impl Sync for InitialTimestampPolicy
impl Unpin for InitialTimestampPolicy
impl UnwindSafe for InitialTimestampPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more