pub(crate) enum VideoOutput {
Off,
RenderApi,
Window(i64),
}Expand description
How mpv shows video on this platform.
TRACES: UR-080 | DR-231, DR-237
Variants§
Off
No picture: audio-only playback, or nowhere to draw.
RenderApi
Linux: frames through the render API into the GTK surface beneath the
webview (video_surface).
Window(i64)
Windows: mpv renders as a child of the app’s own window (wid, set
before initialisation), beneath the transparent WebView2 — the
arrangement tauri-plugin-libmpv ships on Windows.
Implementations§
Trait Implementations§
Source§impl Clone for VideoOutput
impl Clone for VideoOutput
Source§fn clone(&self) -> VideoOutput
fn clone(&self) -> VideoOutput
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 VideoOutput
impl Debug for VideoOutput
Source§impl PartialEq for VideoOutput
impl PartialEq for VideoOutput
Source§fn eq(&self, other: &VideoOutput) -> bool
fn eq(&self, other: &VideoOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VideoOutput
impl StructuralPartialEq for VideoOutput
Auto Trait Implementations§
impl Freeze for VideoOutput
impl RefUnwindSafe for VideoOutput
impl Send for VideoOutput
impl Sync for VideoOutput
impl Unpin for VideoOutput
impl UnsafeUnpin for VideoOutput
impl UnwindSafe for VideoOutput
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