[−][src]Struct sciter::video::video_source
Video source interface to query video state.
Implementations
impl video_source
[src]
pub fn play(&mut self) -> Result<()>
[src]
Starts playback from the current position.
pub fn pause(&mut self) -> Result<()>
[src]
Pauses playback.
pub fn stop(&mut self) -> Result<()>
[src]
Stops playback.
pub fn is_ended(&self) -> Result<bool>
[src]
Whether playback has reached the end of the video.
pub fn get_position(&self) -> Result<f64>
[src]
Reports the current playback position.
pub fn set_position(&mut self, seconds: f64) -> Result<()>
[src]
Sets the current playback position.
pub fn get_duration(&self) -> Result<f64>
[src]
Reports the duration of the video in seconds.
If duration is not available, returns 0
.
pub fn get_volume(&self) -> Result<f64>
[src]
Reports the current volume level of an audio track of the movie.
1.0
corresponds to 0db
, 0.0
(mute) to -100db
.
pub fn set_volume(&mut self, volume: f64) -> Result<()>
[src]
Sets the current volume level between 0.0
(mute) and 1.0
(0db
).
pub fn get_balance(&self) -> Result<f64>
[src]
Reports the current stereo balance.
pub fn set_balance(&mut self, balance: f64) -> Result<()>
[src]
Sets a new value of the stereo balance.
Auto Trait Implementations
impl RefUnwindSafe for video_source
impl !Send for video_source
impl !Sync for video_source
impl Unpin for video_source
impl UnwindSafe for video_source
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,