pub struct VideoProps {
pub source: Option<Arc<str>>,
pub poster: Option<Arc<str>>,
pub audio_session: AudioSession,
pub paused: bool,
pub muted: bool,
pub volume: f32,
pub rate: f32,
pub repeat: bool,
pub resize_mode: ResizeMode,
pub controls: bool,
pub progress_interval_ms: f32,
}Expand description
A video player.
Fields§
§source: Option<Arc<str>>The video’s URL (or asset:/ URI).
poster: Option<Arc<str>>An image (URL or asset:/ URI) shown while the video loads, until
its first frame is ready.
audio_session: AudioSessionWhat its sound does to the rest of the device’s audio.
paused: boolPaused.
muted: boolMuted.
volume: f32Volume, 0..1.
rate: f32Playback rate.
repeat: boolLoop.
resize_mode: ResizeModeHow the picture fits the view.
controls: boolShow the platform’s playback controls.
progress_interval_ms: f32Milliseconds between onProgress events.
Trait Implementations§
Source§impl Clone for VideoProps
impl Clone for VideoProps
Source§impl Debug for VideoProps
impl Debug for VideoProps
Source§impl Default for VideoProps
impl Default for VideoProps
Source§impl PartialEq for VideoProps
impl PartialEq for VideoProps
impl StructuralPartialEq for VideoProps
Auto Trait Implementations§
impl Forget for VideoProps
impl Freeze for VideoProps
impl Move for VideoProps
impl RefUnwindSafe for VideoProps
impl Send for VideoProps
impl Sync for VideoProps
impl Unpin for VideoProps
impl UnsafeUnpin for VideoProps
impl UnwindSafe for VideoProps
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