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§
sourcefn ConvertTimeFormat(
&self,
target_format: &TIME_FORMAT,
source: i64,
source_format: &TIME_FORMAT
) -> HrResult<i64>
fn ConvertTimeFormat( &self, target_format: &TIME_FORMAT, source: i64, source_format: &TIME_FORMAT ) -> HrResult<i64>
IMediaSeeking::ConvertTimeFormat
method.
sourcefn GetAvailable(&self) -> HrResult<(i64, i64)>
fn GetAvailable(&self) -> HrResult<(i64, i64)>
IMediaSeeking::GetAvailable
method.
Returns earliest and latest times for efficient seeking.
sourcefn GetCurrentPosition(&self) -> HrResult<i64>
fn GetCurrentPosition(&self) -> HrResult<i64>
sourcefn GetDuration(&self) -> HrResult<i64>
fn GetDuration(&self) -> HrResult<i64>
IMediaSeeking::GetDuration
method.
sourcefn GetPositions(&self) -> HrResult<(i64, i64)>
fn GetPositions(&self) -> HrResult<(i64, i64)>
IMediaSeeking::GetPositions
method.
Returns current and stop positions.
sourcefn GetPreroll(&self) -> HrResult<i64>
fn GetPreroll(&self) -> HrResult<i64>
IMediaSeeking::GetPreroll
method.
sourcefn GetRate(&self) -> HrResult<f64>
fn GetRate(&self) -> HrResult<f64>
IMediaSeeking::GetRate
method.
sourcefn GetStopPosition(&self) -> HrResult<i64>
fn GetStopPosition(&self) -> HrResult<i64>
IMediaSeeking::GetStopPosition
method.
sourcefn GetTimeFormat(&self) -> HrResult<TIME_FORMAT>
fn GetTimeFormat(&self) -> HrResult<TIME_FORMAT>
IMediaSeeking::GetTimeFormat
method.
sourcefn SetPositions(
&self,
current: i64,
current_flags: SEEKING_FLAGS,
stop: i64,
stop_flags: SEEKING_FLAGS
) -> HrResult<()>
fn SetPositions( &self, current: i64, current_flags: SEEKING_FLAGS, stop: i64, stop_flags: SEEKING_FLAGS ) -> HrResult<()>
IMediaSeeking::SetPositions
method.
sourcefn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()>
fn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()>
IMediaSeeking::SetTimeFormat
method.
Object Safety§
This trait is not object safe.