windows::Win32::Media::MediaPlayer

Trait IWMPControls_Impl

pub trait IWMPControls_Impl: IDispatch_Impl {
Show 16 methods // Required methods fn get_isAvailable( &self, bstritem: &BSTR, pisavailable: *mut VARIANT_BOOL, ) -> Result<()>; fn play(&self) -> Result<()>; fn stop(&self) -> Result<()>; fn pause(&self) -> Result<()>; fn fastForward(&self) -> Result<()>; fn fastReverse(&self) -> Result<()>; fn currentPosition(&self, pdcurrentposition: *mut f64) -> Result<()>; fn SetcurrentPosition(&self, dcurrentposition: f64) -> Result<()>; fn currentPositionString( &self, pbstrcurrentposition: *mut BSTR, ) -> Result<()>; fn next(&self) -> Result<()>; fn previous(&self) -> Result<()>; fn currentItem(&self) -> Result<IWMPMedia>; fn SetcurrentItem(&self, piwmpmedia: Ref<'_, IWMPMedia>) -> Result<()>; fn currentMarker(&self, plmarker: *mut i32) -> Result<()>; fn SetcurrentMarker(&self, lmarker: i32) -> Result<()>; fn playItem(&self, piwmpmedia: Ref<'_, IWMPMedia>) -> Result<()>;
}

Required Methods§

fn get_isAvailable( &self, bstritem: &BSTR, pisavailable: *mut VARIANT_BOOL, ) -> Result<()>

fn play(&self) -> Result<()>

fn stop(&self) -> Result<()>

fn pause(&self) -> Result<()>

fn fastForward(&self) -> Result<()>

fn fastReverse(&self) -> Result<()>

fn currentPosition(&self, pdcurrentposition: *mut f64) -> Result<()>

fn SetcurrentPosition(&self, dcurrentposition: f64) -> Result<()>

fn currentPositionString(&self, pbstrcurrentposition: *mut BSTR) -> Result<()>

fn next(&self) -> Result<()>

fn previous(&self) -> Result<()>

fn currentItem(&self) -> Result<IWMPMedia>

fn SetcurrentItem(&self, piwmpmedia: Ref<'_, IWMPMedia>) -> Result<()>

fn currentMarker(&self, plmarker: *mut i32) -> Result<()>

fn SetcurrentMarker(&self, lmarker: i32) -> Result<()>

fn playItem(&self, piwmpmedia: Ref<'_, IWMPMedia>) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§