AdaptiveMediaSource AdaptiveMediaSource AdaptiveMediaSource AdaptiveMediaSource AdaptiveMediaSource Class

Definition

Represents the source of adaptive streaming content.

public : sealed class AdaptiveMediaSource : IClosable, IMediaSource
struct winrt::Windows::Media::Streaming::Adaptive::AdaptiveMediaSource : IClosable, IMediaSource
public sealed class AdaptiveMediaSource : IDisposable, IMediaSource
Public NotInheritable Class AdaptiveMediaSource Implements IDisposable, IMediaSource
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Call one of the CreateFromStreamAsync or CreateFromUriAsync methods to create a AdaptiveMediaSource object with a specific adaptive streaming manifest source.

For how-to guidance for using adaptive streaming in your app, see Adaptive streaming.

Version history

Windows version SDK version Value added
1511 10586 AdvancedSettings
1703 15063 DesiredSeekableWindowSize
1703 15063 Diagnostics
1703 15063 GetCorrelatedTimes
1703 15063 MaxSeekableWindowSize
1703 15063 MinLiveOffset

Properties

AdvancedSettings AdvancedSettings AdvancedSettings AdvancedSettings AdvancedSettings

Gets the advanced settings for the adaptive media source.

AudioOnlyPlayback AudioOnlyPlayback AudioOnlyPlayback AudioOnlyPlayback AudioOnlyPlayback

Gets a value indicating if the content streamed by the media source contains only audio.

AvailableBitrates AvailableBitrates AvailableBitrates AvailableBitrates AvailableBitrates

Gets the available adaptive bit rates of the adaptive streaming manifest that is the source of the adaptive streaming object.

CurrentDownloadBitrate CurrentDownloadBitrate CurrentDownloadBitrate CurrentDownloadBitrate CurrentDownloadBitrate

Gets a value indicating the current download bitrate for the media source.

CurrentPlaybackBitrate CurrentPlaybackBitrate CurrentPlaybackBitrate CurrentPlaybackBitrate CurrentPlaybackBitrate

Gets a value indicating the current playback bitrate for the media source.

DesiredLiveOffset DesiredLiveOffset DesiredLiveOffset DesiredLiveOffset DesiredLiveOffset

Gets or sets the desired offset of live playback from the end of the known media content that has been downloaded.

DesiredMaxBitrate DesiredMaxBitrate DesiredMaxBitrate DesiredMaxBitrate DesiredMaxBitrate

Gets or sets the desired maximum bitrate for the media source.

DesiredMinBitrate DesiredMinBitrate DesiredMinBitrate DesiredMinBitrate DesiredMinBitrate

Gets or sets the desired minimum bitrate for the media source.

DesiredSeekableWindowSize DesiredSeekableWindowSize DesiredSeekableWindowSize DesiredSeekableWindowSize DesiredSeekableWindowSize

Gets or sets the requested maximum size of the time window within which the user can seek within the streaming media.

Diagnostics Diagnostics Diagnostics Diagnostics Diagnostics

Gets an object that provides an event that is raised when diagnostic information about the adaptive media source is available.

InboundBitsPerSecond InboundBitsPerSecond InboundBitsPerSecond InboundBitsPerSecond InboundBitsPerSecond

Gets a value indicating the inbound bits per second statistic over the time window specified by the InboundBitsPerSecondWindow property.

InboundBitsPerSecondWindow InboundBitsPerSecondWindow InboundBitsPerSecondWindow InboundBitsPerSecondWindow InboundBitsPerSecondWindow

Gets or sets the time span over which the InboundBitsPerSecond property is calculated.

InitialBitrate InitialBitrate InitialBitrate InitialBitrate InitialBitrate

Gets and sets the initial bit rate to use for playback of the media source.

IsLive IsLive IsLive IsLive IsLive

Gets a value that indicates whether the media source is live.

MaxSeekableWindowSize MaxSeekableWindowSize MaxSeekableWindowSize MaxSeekableWindowSize MaxSeekableWindowSize

Gets the maximum time window within which the user can seek within the streaming media.

MinLiveOffset MinLiveOffset MinLiveOffset MinLiveOffset MinLiveOffset

Gets the minimum offset of live playback from the end of the known media content that has been downloaded.

Methods

Close() Close() Close() Close() Close()

Closes the adaptive media source and frees up associated resources.

CreateFromStreamAsync(IInputStream, Uri, String) CreateFromStreamAsync(IInputStream, Uri, String) CreateFromStreamAsync(IInputStream, Uri, String) CreateFromStreamAsync(IInputStream, Uri, String) CreateFromStreamAsync(IInputStream, Uri, String)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient) CreateFromStreamAsync(IInputStream, Uri, String, HttpClient) CreateFromStreamAsync(IInputStream, Uri, String, HttpClient) CreateFromStreamAsync(IInputStream, Uri, String, HttpClient) CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

CreateFromUriAsync(Uri) CreateFromUriAsync(Uri) CreateFromUriAsync(Uri) CreateFromUriAsync(Uri) CreateFromUriAsync(Uri)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

CreateFromUriAsync(Uri, HttpClient) CreateFromUriAsync(Uri, HttpClient) CreateFromUriAsync(Uri, HttpClient) CreateFromUriAsync(Uri, HttpClient) CreateFromUriAsync(Uri, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetCorrelatedTimes() GetCorrelatedTimes() GetCorrelatedTimes() GetCorrelatedTimes() GetCorrelatedTimes()

Gets an object that provides timing information that is correlated between timestamps in the media or date/time information from the manifest with the presentation clock timeline.

IsContentTypeSupported(String) IsContentTypeSupported(String) IsContentTypeSupported(String) IsContentTypeSupported(String) IsContentTypeSupported(String)

Determines whether the content type of the source is supported.

Events

DownloadBitrateChanged DownloadBitrateChanged DownloadBitrateChanged DownloadBitrateChanged DownloadBitrateChanged

Occurs when the CurrentDownloadBitrate changes.

DownloadCompleted DownloadCompleted DownloadCompleted DownloadCompleted DownloadCompleted

Occurs when a resource download operation completes

DownloadFailed DownloadFailed DownloadFailed DownloadFailed DownloadFailed

Occurs when a resource download operation fails.

DownloadRequested DownloadRequested DownloadRequested DownloadRequested DownloadRequested

Occurs when a resource download operation is requested.

PlaybackBitrateChanged PlaybackBitrateChanged PlaybackBitrateChanged PlaybackBitrateChanged PlaybackBitrateChanged

Occurs when the CurrentPlaybackBitrate changes.

See also