pub enum VideoSeekStrategy {
LocalNativeSeek,
BackendNativeSeek,
BackendReloadStream,
}Expand description
Seek strategy for video playback, derived from a stream’s characteristics.
Every video renderer is a native backend (mpv, ExoPlayer) since the webview
<video> path was deleted (DR-235), so the backend performs every seek; what
remains to decide is whether it can move the stream in place.
Variants§
LocalNativeSeek
Local file - always use native seek on backend
BackendNativeSeek
Seekable where it sits (direct play/stream, or a transcode the engine can move) - backend seeks
BackendReloadStream
A transcode the engine cannot move - re-open the stream at the target
Trait Implementations§
Source§impl Clone for VideoSeekStrategy
impl Clone for VideoSeekStrategy
Source§fn clone(&self) -> VideoSeekStrategy
fn clone(&self) -> VideoSeekStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VideoSeekStrategy
impl Debug for VideoSeekStrategy
Source§impl PartialEq for VideoSeekStrategy
impl PartialEq for VideoSeekStrategy
Source§fn eq(&self, other: &VideoSeekStrategy) -> bool
fn eq(&self, other: &VideoSeekStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VideoSeekStrategy
impl Eq for VideoSeekStrategy
impl StructuralPartialEq for VideoSeekStrategy
Auto Trait Implementations§
impl Freeze for VideoSeekStrategy
impl RefUnwindSafe for VideoSeekStrategy
impl Send for VideoSeekStrategy
impl Sync for VideoSeekStrategy
impl Unpin for VideoSeekStrategy
impl UnsafeUnpin for VideoSeekStrategy
impl UnwindSafe for VideoSeekStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more