[][src]Struct sciter::video::video_source

#[repr(C)]pub struct video_source { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.