pub enum AudioTrackSwitchStrategy {
Html5ReloadStream,
BackendReloadStream,
BackendSelectInPlace,
}Expand description
How a request to change audio track has to be carried out.
Variants§
Html5ReloadStream
Re-open the stream pinned to the chosen track; the frontend reloads its
<video> element. An HTML5 element cannot select an audio track at all,
so this holds whether or not the current stream is a transcode.
BackendReloadStream
Re-open the stream pinned to the chosen track; the backend reloads itself and restores the position.
BackendSelectInPlace
The engine already holds every track — select in place, no reload.
Trait Implementations§
Source§impl Clone for AudioTrackSwitchStrategy
impl Clone for AudioTrackSwitchStrategy
Source§fn clone(&self) -> AudioTrackSwitchStrategy
fn clone(&self) -> AudioTrackSwitchStrategy
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 AudioTrackSwitchStrategy
impl Debug for AudioTrackSwitchStrategy
Source§impl PartialEq for AudioTrackSwitchStrategy
impl PartialEq for AudioTrackSwitchStrategy
Source§fn eq(&self, other: &AudioTrackSwitchStrategy) -> bool
fn eq(&self, other: &AudioTrackSwitchStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AudioTrackSwitchStrategy
impl Eq for AudioTrackSwitchStrategy
impl StructuralPartialEq for AudioTrackSwitchStrategy
Auto Trait Implementations§
impl Freeze for AudioTrackSwitchStrategy
impl RefUnwindSafe for AudioTrackSwitchStrategy
impl Send for AudioTrackSwitchStrategy
impl Sync for AudioTrackSwitchStrategy
impl Unpin for AudioTrackSwitchStrategy
impl UnsafeUnpin for AudioTrackSwitchStrategy
impl UnwindSafe for AudioTrackSwitchStrategy
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