AdaptiveMediaSourceDownloadRequestedEventArgs AdaptiveMediaSourceDownloadRequestedEventArgs AdaptiveMediaSourceDownloadRequestedEventArgs AdaptiveMediaSourceDownloadRequestedEventArgs Class

Definition

Provides data for the DownloadRequested event.

public : sealed class AdaptiveMediaSourceDownloadRequestedEventArgs : IAdaptiveMediaSourceDownloadRequestedEventArgs, IAdaptiveMediaSourceDownloadRequestedEventArgs2public sealed class AdaptiveMediaSourceDownloadRequestedEventArgs : IAdaptiveMediaSourceDownloadRequestedEventArgs, IAdaptiveMediaSourceDownloadRequestedEventArgs2Public NotInheritable Class AdaptiveMediaSourceDownloadRequestedEventArgs Implements IAdaptiveMediaSourceDownloadRequestedEventArgs, IAdaptiveMediaSourceDownloadRequestedEventArgs2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Obtain an instance of this class by implementing a handler for the DownloadRequested event.

Properties

Position Position Position Position

Gets a time span representing the position within the timeline of the media segment to which the event applies.

public : IReference<TimeSpan> Position { get; }public Nullable<TimeSpan> Position { get; }Public ReadOnly Property Position As Nullable<TimeSpan>// You can use this property in JavaScript.
Value
IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>

A time span representing the position within the timeline of the media segment to which the event applies.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

Because this event occurs when content is buffering, the position of the event in the timeline may be up to several minutes ahead of the current playback position.

RequestId RequestId RequestId RequestId

Gets a locally-unique identifier for the web request associated with the event.

public : int RequestId { get; }public int RequestId { get; }Public ReadOnly Property RequestId As int// You can use this property in JavaScript.
Value
int int int int

A locally-unique identifier for the web request associated with the event.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

This value can be used to correlate the web request associated with this event to other events, including DownloadFailed, DownloadCompleted, and DiagnosticAvailable.

ResourceByteRangeLength ResourceByteRangeLength ResourceByteRangeLength ResourceByteRangeLength

Gets the byte range length of the media download request.

public : IReference<ulong> ResourceByteRangeLength { get; }public Nullable<ulong> ResourceByteRangeLength { get; }Public ReadOnly Property ResourceByteRangeLength As Nullable<ulong>// You can use this property in JavaScript.
Value
IReference<ulong> Nullable<ulong> Nullable<ulong> Nullable<ulong>

The byte range length of the media download request.

ResourceByteRangeOffset ResourceByteRangeOffset ResourceByteRangeOffset ResourceByteRangeOffset

Gets the byte range offset of the media download request.

public : IReference<ulong> ResourceByteRangeOffset { get; }public Nullable<ulong> ResourceByteRangeOffset { get; }Public ReadOnly Property ResourceByteRangeOffset As Nullable<ulong>// You can use this property in JavaScript.
Value
IReference<ulong> Nullable<ulong> Nullable<ulong> Nullable<ulong>

The byte range offset of the media download request.

ResourceType ResourceType ResourceType ResourceType

Gets the resource type of the media download request.

public : AdaptiveMediaSourceResourceType ResourceType { get; }public AdaptiveMediaSourceResourceType ResourceType { get; }Public ReadOnly Property ResourceType As AdaptiveMediaSourceResourceType// You can use this property in JavaScript.

ResourceUri ResourceUri ResourceUri ResourceUri

Gets the resource URI of the media download request.

public : Uri ResourceUri { get; }public Uri ResourceUri { get; }Public ReadOnly Property ResourceUri As Uri// You can use this property in JavaScript.
Value
Uri Uri Uri Uri

The resource URI of the media download request.

Result Result Result Result

Gets an AdaptiveMediaSourceDownloadResult object representing the result of the media download request.

public : AdaptiveMediaSourceDownloadResult Result { get; }public AdaptiveMediaSourceDownloadResult Result { get; }Public ReadOnly Property Result As AdaptiveMediaSourceDownloadResult// You can use this property in JavaScript.

Remarks

Apps that manually perform the download of resources can set the properties of the returned AdaptiveMediaSourceDownloadResult object to provide the stream and content type of the downloaded resource to the AdaptiveMediaSource object.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets a deferral that can be used to defer the completion of the DownloadRequested event so that the app can asynchronously download media content.

public : AdaptiveMediaSourceDownloadRequestedDeferral GetDeferral()public AdaptiveMediaSourceDownloadRequestedDeferral GetDeferral()Public Function GetDeferral() As AdaptiveMediaSourceDownloadRequestedDeferral// You can use this method in JavaScript.
Returns