Struct windows::Media::Streaming::Adaptive::AdaptiveMediaSource
pub struct AdaptiveMediaSource(/* private fields */);
Implementations§
§impl AdaptiveMediaSource
impl AdaptiveMediaSource
pub fn IsLive(&self) -> Result<bool>
pub fn DesiredLiveOffset(&self) -> Result<TimeSpan>
pub fn SetDesiredLiveOffset(&self, value: TimeSpan) -> Result<()>
pub fn InitialBitrate(&self) -> Result<u32>
pub fn SetInitialBitrate(&self, value: u32) -> Result<()>
pub fn CurrentDownloadBitrate(&self) -> Result<u32>
pub fn CurrentPlaybackBitrate(&self) -> Result<u32>
pub fn AvailableBitrates(&self) -> Result<IVectorView<u32>>
pub fn DesiredMinBitrate(&self) -> Result<IReference<u32>>
pub fn SetDesiredMinBitrate<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<u32>>,
pub fn DesiredMaxBitrate(&self) -> Result<IReference<u32>>
pub fn SetDesiredMaxBitrate<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<u32>>,
pub fn AudioOnlyPlayback(&self) -> Result<bool>
pub fn InboundBitsPerSecond(&self) -> Result<u64>
pub fn InboundBitsPerSecondWindow(&self) -> Result<TimeSpan>
pub fn SetInboundBitsPerSecondWindow(&self, value: TimeSpan) -> Result<()>
pub fn DownloadBitrateChanged<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadBitrateChangedEventArgs>>,
pub fn RemoveDownloadBitrateChanged( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn PlaybackBitrateChanged<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs>>,
pub fn RemovePlaybackBitrateChanged( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn DownloadRequested<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadRequestedEventArgs>>,
pub fn RemoveDownloadRequested( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn DownloadCompleted<P0>(
&self,
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadCompletedEventArgs>>,
pub fn RemoveDownloadCompleted( &self, token: EventRegistrationToken, ) -> Result<()>
pub fn DownloadFailed<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: Param<TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadFailedEventArgs>>,
pub fn RemoveDownloadFailed(&self, token: EventRegistrationToken) -> Result<()>
pub fn AdvancedSettings(&self) -> Result<AdaptiveMediaSourceAdvancedSettings>
pub fn MinLiveOffset(&self) -> Result<IReference<TimeSpan>>
pub fn MaxSeekableWindowSize(&self) -> Result<IReference<TimeSpan>>
pub fn DesiredSeekableWindowSize(&self) -> Result<IReference<TimeSpan>>
pub fn SetDesiredSeekableWindowSize<P0>(&self, value: P0) -> Result<()>where
P0: Param<IReference<TimeSpan>>,
pub fn Diagnostics(&self) -> Result<AdaptiveMediaSourceDiagnostics>
pub fn IsContentTypeSupported(contenttype: &HSTRING) -> Result<bool>
pub fn CreateFromUriAsync<P0>(
uri: P0,
) -> Result<IAsyncOperation<AdaptiveMediaSourceCreationResult>>where
P0: Param<Uri>,
pub fn CreateFromUriWithDownloaderAsync<P0, P1>(
uri: P0,
httpclient: P1,
) -> Result<IAsyncOperation<AdaptiveMediaSourceCreationResult>>where
P0: Param<Uri>,
P1: Param<HttpClient>,
pub fn CreateFromStreamAsync<P0, P1>(
stream: P0,
uri: P1,
contenttype: &HSTRING,
) -> Result<IAsyncOperation<AdaptiveMediaSourceCreationResult>>where
P0: Param<IInputStream>,
P1: Param<Uri>,
pub fn CreateFromStreamWithDownloaderAsync<P0, P1, P2>( stream: P0, uri: P1, contenttype: &HSTRING, httpclient: P2, ) -> Result<IAsyncOperation<AdaptiveMediaSourceCreationResult>>
pub fn Close(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IInspectable> for AdaptiveMediaSource
impl CanInto<IInspectable> for AdaptiveMediaSource
§impl CanInto<IMediaSource> for AdaptiveMediaSource
impl CanInto<IMediaSource> for AdaptiveMediaSource
§impl CanInto<IUnknown> for AdaptiveMediaSource
impl CanInto<IUnknown> for AdaptiveMediaSource
§impl Clone for AdaptiveMediaSource
impl Clone for AdaptiveMediaSource
§fn clone(&self) -> AdaptiveMediaSource
fn clone(&self) -> AdaptiveMediaSource
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 AdaptiveMediaSource
impl Debug for AdaptiveMediaSource
§impl From<&AdaptiveMediaSource> for &IInspectable
impl From<&AdaptiveMediaSource> for &IInspectable
§fn from(value: &AdaptiveMediaSource) -> Self
fn from(value: &AdaptiveMediaSource) -> Self
Converts to this type from the input type.
§impl From<&AdaptiveMediaSource> for &IUnknown
impl From<&AdaptiveMediaSource> for &IUnknown
§fn from(value: &AdaptiveMediaSource) -> Self
fn from(value: &AdaptiveMediaSource) -> Self
Converts to this type from the input type.
§impl From<AdaptiveMediaSource> for IInspectable
impl From<AdaptiveMediaSource> for IInspectable
§fn from(value: AdaptiveMediaSource) -> Self
fn from(value: AdaptiveMediaSource) -> Self
Converts to this type from the input type.
§impl From<AdaptiveMediaSource> for IUnknown
impl From<AdaptiveMediaSource> for IUnknown
§fn from(value: AdaptiveMediaSource) -> Self
fn from(value: AdaptiveMediaSource) -> Self
Converts to this type from the input type.
§impl Interface for AdaptiveMediaSource
impl Interface for AdaptiveMediaSource
§const IID: GUID = <IAdaptiveMediaSource as windows_core::Interface>::IID
const IID: GUID = <IAdaptiveMediaSource as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for AdaptiveMediaSource
impl PartialEq for AdaptiveMediaSource
§fn eq(&self, other: &AdaptiveMediaSource) -> bool
fn eq(&self, other: &AdaptiveMediaSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AdaptiveMediaSource
impl Send for AdaptiveMediaSource
impl StructuralPartialEq for AdaptiveMediaSource
impl Sync for AdaptiveMediaSource
Auto Trait Implementations§
impl Freeze for AdaptiveMediaSource
impl RefUnwindSafe for AdaptiveMediaSource
impl Unpin for AdaptiveMediaSource
impl UnwindSafe for AdaptiveMediaSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)