Trait winsafe::prelude::dshow_IMediaSeeking

source ·
pub trait dshow_IMediaSeeking: ole_IUnknown {
    // Provided methods
    fn ConvertTimeFormat(
        &self,
        target_format: &TIME_FORMAT,
        source: i64,
        source_format: &TIME_FORMAT
    ) -> HrResult<i64> { ... }
    fn GetAvailable(&self) -> HrResult<(i64, i64)> { ... }
    fn GetCurrentPosition(&self) -> HrResult<i64> { ... }
    fn GetDuration(&self) -> HrResult<i64> { ... }
    fn GetPositions(&self) -> HrResult<(i64, i64)> { ... }
    fn GetPreroll(&self) -> HrResult<i64> { ... }
    fn GetRate(&self) -> HrResult<f64> { ... }
    fn GetStopPosition(&self) -> HrResult<i64> { ... }
    fn GetTimeFormat(&self) -> HrResult<TIME_FORMAT> { ... }
    fn SetPositions(
        &self,
        current: i64,
        current_flags: SEEKING_FLAGS,
        stop: i64,
        stop_flags: SEEKING_FLAGS
    ) -> HrResult<()> { ... }
    fn SetRate(&self, rate: f64) -> HrResult<()> { ... }
    fn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()> { ... }
}
Available on crate features kernel and dshow only.
Expand description

This trait is enabled with the dshow feature, and provides methods for IMediaSeeking.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn ConvertTimeFormat( &self, target_format: &TIME_FORMAT, source: i64, source_format: &TIME_FORMAT ) -> HrResult<i64>

source

fn GetAvailable(&self) -> HrResult<(i64, i64)>

IMediaSeeking::GetAvailable method.

Returns earliest and latest times for efficient seeking.

source

fn GetCurrentPosition(&self) -> HrResult<i64>

source

fn GetDuration(&self) -> HrResult<i64>

source

fn GetPositions(&self) -> HrResult<(i64, i64)>

IMediaSeeking::GetPositions method.

Returns current and stop positions.

source

fn GetPreroll(&self) -> HrResult<i64>

source

fn GetRate(&self) -> HrResult<f64>

source

fn GetStopPosition(&self) -> HrResult<i64>

source

fn GetTimeFormat(&self) -> HrResult<TIME_FORMAT>

source

fn SetPositions( &self, current: i64, current_flags: SEEKING_FLAGS, stop: i64, stop_flags: SEEKING_FLAGS ) -> HrResult<()>

source

fn SetRate(&self, rate: f64) -> HrResult<()>

source

fn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()>

Object Safety§

This trait is not object safe.

Implementors§