Trait windows::Win32::Media::MediaFoundation::IMFTimedText_Impl
pub trait IMFTimedText_Impl: Sized {
Show 14 methods
// Required methods
fn RegisterNotifications(
&self,
notify: Option<&IMFTimedTextNotify>,
) -> Result<()>;
fn SelectTrack(&self, trackid: u32, selected: BOOL) -> Result<()>;
fn AddDataSource(
&self,
bytestream: Option<&IMFByteStream>,
label: &PCWSTR,
language: &PCWSTR,
kind: MF_TIMED_TEXT_TRACK_KIND,
isdefault: BOOL,
) -> Result<u32>;
fn AddDataSourceFromUrl(
&self,
url: &PCWSTR,
label: &PCWSTR,
language: &PCWSTR,
kind: MF_TIMED_TEXT_TRACK_KIND,
isdefault: BOOL,
) -> Result<u32>;
fn AddTrack(
&self,
label: &PCWSTR,
language: &PCWSTR,
kind: MF_TIMED_TEXT_TRACK_KIND,
) -> Result<IMFTimedTextTrack>;
fn RemoveTrack(&self, track: Option<&IMFTimedTextTrack>) -> Result<()>;
fn GetCueTimeOffset(&self) -> Result<f64>;
fn SetCueTimeOffset(&self, offset: f64) -> Result<()>;
fn GetTracks(&self) -> Result<IMFTimedTextTrackList>;
fn GetActiveTracks(&self) -> Result<IMFTimedTextTrackList>;
fn GetTextTracks(&self) -> Result<IMFTimedTextTrackList>;
fn GetMetadataTracks(&self) -> Result<IMFTimedTextTrackList>;
fn SetInBandEnabled(&self, enabled: BOOL) -> Result<()>;
fn IsInBandEnabled(&self) -> BOOL;
}
Required Methods§
fn RegisterNotifications( &self, notify: Option<&IMFTimedTextNotify>, ) -> Result<()>
fn SelectTrack(&self, trackid: u32, selected: BOOL) -> Result<()>
fn AddDataSource( &self, bytestream: Option<&IMFByteStream>, label: &PCWSTR, language: &PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: BOOL, ) -> Result<u32>
fn AddDataSourceFromUrl( &self, url: &PCWSTR, label: &PCWSTR, language: &PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, isdefault: BOOL, ) -> Result<u32>
fn AddTrack( &self, label: &PCWSTR, language: &PCWSTR, kind: MF_TIMED_TEXT_TRACK_KIND, ) -> Result<IMFTimedTextTrack>
fn RemoveTrack(&self, track: Option<&IMFTimedTextTrack>) -> Result<()>
fn GetCueTimeOffset(&self) -> Result<f64>
fn SetCueTimeOffset(&self, offset: f64) -> Result<()>
fn GetTracks(&self) -> Result<IMFTimedTextTrackList>
fn GetActiveTracks(&self) -> Result<IMFTimedTextTrackList>
fn GetTextTracks(&self) -> Result<IMFTimedTextTrackList>
fn GetMetadataTracks(&self) -> Result<IMFTimedTextTrackList>
fn SetInBandEnabled(&self, enabled: BOOL) -> Result<()>
fn IsInBandEnabled(&self) -> BOOL
Object Safety§
This trait is not object safe.