Trait winsafe::prelude::mf_IMFMediaSession
source · pub trait mf_IMFMediaSession: mf_IMFMediaEventGenerator {
// Provided methods
fn ClearTopologies(&self) -> HrResult<()> { ... }
fn Close(&self) -> HrResult<()> { ... }
fn GetClock(&self) -> HrResult<IMFClock> { ... }
fn GetFullTopology(
&self,
flags: MFSESSION_GETFULLTOPOLOGY,
topo_id: u64
) -> HrResult<IMFTopology> { ... }
fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP> { ... }
fn Pause(&self) -> HrResult<()> { ... }
fn SetTopology(
&self,
flags: MFSESSION_SETTOPOLOGY,
topology: &impl mf_IMFTopology
) -> HrResult<()> { ... }
fn Shutdown(&self) -> HrResult<()> { ... }
fn Start(
&self,
time_format: MF_TIME_FORMAT,
start_position: &PROPVARIANT
) -> HrResult<()> { ... }
fn Stop(&self) -> HrResult<()> { ... }
}
Available on crate features
kernel
and mf
only.Expand description
This trait is enabled with the mf
feature, and provides methods for
IMFMediaSession
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn ClearTopologies(&self) -> HrResult<()>
fn ClearTopologies(&self) -> HrResult<()>
IMFMediaSession::ClearTopologies
method.
sourcefn Close(&self) -> HrResult<()>
fn Close(&self) -> HrResult<()>
IMFMediaSession::Close
method.
sourcefn GetClock(&self) -> HrResult<IMFClock>
fn GetClock(&self) -> HrResult<IMFClock>
IMFMediaSession::GetClock
method.
sourcefn GetFullTopology(
&self,
flags: MFSESSION_GETFULLTOPOLOGY,
topo_id: u64
) -> HrResult<IMFTopology>
fn GetFullTopology( &self, flags: MFSESSION_GETFULLTOPOLOGY, topo_id: u64 ) -> HrResult<IMFTopology>
IMFMediaSession::GetFullTopology
method.
sourcefn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>
sourcefn Pause(&self) -> HrResult<()>
fn Pause(&self) -> HrResult<()>
IMFMediaSession::Pause
method.
sourcefn SetTopology(
&self,
flags: MFSESSION_SETTOPOLOGY,
topology: &impl mf_IMFTopology
) -> HrResult<()>
fn SetTopology( &self, flags: MFSESSION_SETTOPOLOGY, topology: &impl mf_IMFTopology ) -> HrResult<()>
IMFMediaSession::SetTopology
method.
sourcefn Shutdown(&self) -> HrResult<()>
fn Shutdown(&self) -> HrResult<()>
IMFMediaSession::Shutdown
method.
sourcefn Start(
&self,
time_format: MF_TIME_FORMAT,
start_position: &PROPVARIANT
) -> HrResult<()>
fn Start( &self, time_format: MF_TIME_FORMAT, start_position: &PROPVARIANT ) -> HrResult<()>
IMFMediaSession::Start
method.
§Examples
use winsafe::{self as w, prelude::*, co};
let session: w::IMFMediaSession; // initialized somewhere
session.Start(
co::MF_TIME_FORMAT::NULL,
&w::PROPVARIANT::default(),
)?;
sourcefn Stop(&self) -> HrResult<()>
fn Stop(&self) -> HrResult<()>
IMFMediaSession::Stop
method.
Object Safety§
This trait is not object safe.