Struct windows::Media::Core::MediaSource
pub struct MediaSource(/* private fields */);
Implementations§
§impl MediaSource
impl MediaSource
pub fn Close(&self) -> Result<()>
pub fn OpenOperationCompleted<P0>( &self, handler: P0 ) -> Result<EventRegistrationToken>
pub fn RemoveOpenOperationCompleted( &self, token: EventRegistrationToken ) -> Result<()>
pub fn CustomProperties(&self) -> Result<ValueSet>
pub fn Duration(&self) -> Result<IReference<TimeSpan>>
pub fn IsOpen(&self) -> Result<bool>
pub fn ExternalTimedTextSources( &self ) -> Result<IObservableVector<TimedTextSource>>
pub fn ExternalTimedMetadataTracks( &self ) -> Result<IObservableVector<TimedMetadataTrack>>
pub fn StateChanged<P0>(&self, handler: P0) -> Result<EventRegistrationToken>
pub fn RemoveStateChanged(&self, token: EventRegistrationToken) -> Result<()>
pub fn State(&self) -> Result<MediaSourceState>
pub fn Reset(&self) -> Result<()>
pub fn AdaptiveMediaSource(&self) -> Result<AdaptiveMediaSource>
pub fn MediaStreamSource(&self) -> Result<MediaStreamSource>
pub fn MseStreamSource(&self) -> Result<MseStreamSource>
pub fn Uri(&self) -> Result<Uri>
pub fn OpenAsync(&self) -> Result<IAsyncAction>
pub fn DownloadOperation(&self) -> Result<DownloadOperation>
pub fn CreateFromAdaptiveMediaSource<P0>(mediasource: P0) -> Result<MediaSource>where
P0: IntoParam<AdaptiveMediaSource>,
pub fn CreateFromMediaStreamSource<P0>(mediasource: P0) -> Result<MediaSource>where
P0: IntoParam<MediaStreamSource>,
pub fn CreateFromMseStreamSource<P0>(mediasource: P0) -> Result<MediaSource>where
P0: IntoParam<MseStreamSource>,
pub fn CreateFromIMediaSource<P0>(mediasource: P0) -> Result<MediaSource>where
P0: IntoParam<IMediaSource>,
pub fn CreateFromStorageFile<P0>(file: P0) -> Result<MediaSource>where
P0: IntoParam<IStorageFile>,
pub fn CreateFromStream<P0>(
stream: P0,
contenttype: &HSTRING
) -> Result<MediaSource>where
P0: IntoParam<IRandomAccessStream>,
pub fn CreateFromStreamReference<P0>(
stream: P0,
contenttype: &HSTRING
) -> Result<MediaSource>where
P0: IntoParam<IRandomAccessStreamReference>,
pub fn CreateFromUri<P0>(uri: P0) -> Result<MediaSource>where
P0: IntoParam<Uri>,
pub fn CreateFromMediaBinder<P0>(binder: P0) -> Result<MediaSource>where
P0: IntoParam<MediaBinder>,
pub fn CreateFromMediaFrameSource<P0>(framesource: P0) -> Result<MediaSource>where
P0: IntoParam<MediaFrameSource>,
pub fn CreateFromDownloadOperation<P0>(
downloadoperation: P0
) -> Result<MediaSource>where
P0: IntoParam<DownloadOperation>,
Trait Implementations§
§impl Clone for MediaSource
impl Clone for MediaSource
§fn clone(&self) -> MediaSource
fn clone(&self) -> MediaSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MediaSource
impl Debug for MediaSource
§impl From<&MediaSource> for &IInspectable
impl From<&MediaSource> for &IInspectable
§fn from(value: &MediaSource) -> Self
fn from(value: &MediaSource) -> Self
Converts to this type from the input type.
§impl From<&MediaSource> for &IUnknown
impl From<&MediaSource> for &IUnknown
§fn from(value: &MediaSource) -> Self
fn from(value: &MediaSource) -> Self
Converts to this type from the input type.
§impl From<MediaSource> for IInspectable
impl From<MediaSource> for IInspectable
§fn from(value: MediaSource) -> Self
fn from(value: MediaSource) -> Self
Converts to this type from the input type.
§impl From<MediaSource> for IUnknown
impl From<MediaSource> for IUnknown
§fn from(value: MediaSource) -> Self
fn from(value: MediaSource) -> Self
Converts to this type from the input type.
§impl Interface for MediaSource
impl Interface for MediaSource
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for MediaSource
impl PartialEq for MediaSource
§fn eq(&self, other: &MediaSource) -> bool
fn eq(&self, other: &MediaSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaSource
impl Send for MediaSource
impl StructuralPartialEq for MediaSource
impl Sync for MediaSource
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more