pub struct MediaProps {
pub url: String,
pub autoplay: bool,
pub looping: bool,
pub muted: bool,
pub controls: bool,
}Expand description
Full props (realize). The initial url loads when the native view is created; the flags are
fixed at build time.
Fields§
§url: StringA local file path or an http(s)/file URL.
autoplay: boolStart playing as soon as the media is ready (default true).
looping: boolRestart from the beginning when playback reaches the end (default false).
muted: boolSilence the audio track (default false).
controls: boolShow the toolkit’s native transport chrome where it has one (default true).
Trait Implementations§
Source§impl Clone for MediaProps
impl Clone for MediaProps
Source§fn clone(&self) -> MediaProps
fn clone(&self) -> MediaProps
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 MediaProps
impl Debug for MediaProps
Source§impl Default for MediaProps
impl Default for MediaProps
Source§impl PartialEq for MediaProps
impl PartialEq for MediaProps
Source§fn eq(&self, other: &MediaProps) -> bool
fn eq(&self, other: &MediaProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MediaProps
Auto Trait Implementations§
impl Freeze for MediaProps
impl RefUnwindSafe for MediaProps
impl Send for MediaProps
impl Sync for MediaProps
impl Unpin for MediaProps
impl UnsafeUnpin for MediaProps
impl UnwindSafe for MediaProps
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more