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§

source

fn ClearTopologies(&self) -> HrResult<()>

source

fn Close(&self) -> HrResult<()>

source

fn GetClock(&self) -> HrResult<IMFClock>

source

fn GetFullTopology( &self, flags: MFSESSION_GETFULLTOPOLOGY, topo_id: u64 ) -> HrResult<IMFTopology>

source

fn GetSessionCapabilities(&self) -> HrResult<MFSESSIONCAP>

source

fn Pause(&self) -> HrResult<()>

source

fn SetTopology( &self, flags: MFSESSION_SETTOPOLOGY, topology: &impl mf_IMFTopology ) -> HrResult<()>

source

fn Shutdown(&self) -> HrResult<()>

source

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(),
)?;
source

fn Stop(&self) -> HrResult<()>

Object Safety§

This trait is not object safe.

Implementors§