pub struct VideoOptions {
pub auto_play: bool,
pub loop_playback: bool,
pub hide_when_stopped: bool,
pub muted: bool,
pub start_time: Option<u32>,
pub end_time: Option<u32>,
pub volume: u32,
}Expand description
Video playback options
Fields§
§auto_play: boolAuto-play when slide is shown
loop_playback: boolLoop playback
hide_when_stopped: boolHide when not playing
muted: boolMute audio
start_time: Option<u32>Start time in milliseconds
end_time: Option<u32>End time in milliseconds
volume: u32Volume (0-100)
Implementations§
Source§impl VideoOptions
impl VideoOptions
Sourcepub fn with_muted(self, muted: bool) -> Self
pub fn with_muted(self, muted: bool) -> Self
Set muted
Sourcepub fn with_volume(self, volume: u32) -> Self
pub fn with_volume(self, volume: u32) -> Self
Set volume (0-100)
Sourcepub fn with_start_time(self, ms: u32) -> Self
pub fn with_start_time(self, ms: u32) -> Self
Set start time in milliseconds
Sourcepub fn with_end_time(self, ms: u32) -> Self
pub fn with_end_time(self, ms: u32) -> Self
Set end time in milliseconds
Trait Implementations§
Source§impl Clone for VideoOptions
impl Clone for VideoOptions
Source§fn clone(&self) -> VideoOptions
fn clone(&self) -> VideoOptions
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 VideoOptions
impl Debug for VideoOptions
Auto Trait Implementations§
impl Freeze for VideoOptions
impl RefUnwindSafe for VideoOptions
impl Send for VideoOptions
impl Sync for VideoOptions
impl Unpin for VideoOptions
impl UnsafeUnpin for VideoOptions
impl UnwindSafe for VideoOptions
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