Udostępnij za pośrednictwem


AdaptiveMediaSourceDownloadRequestedEventArgs Class

Definition

Provides data for the DownloadRequested event.

public ref class AdaptiveMediaSourceDownloadRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AdaptiveMediaSourceDownloadRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AdaptiveMediaSourceDownloadRequestedEventArgs
Public NotInheritable Class AdaptiveMediaSourceDownloadRequestedEventArgs
Inheritance
Object Platform::Object IInspectable AdaptiveMediaSourceDownloadRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

Version history

Windows version SDK version Value added
1703 15063 Position
1703 15063 RequestId
1803 17134 ResourceContentType
1803 17134 ResourceDuration

Properties

Position

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

RequestId

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

ResourceByteRangeLength

Gets the byte range length of the media download request.

ResourceByteRangeOffset

Gets the byte range offset of the media download request.

ResourceContentType

Gets a string representing the content type associated with the event.

ResourceDuration

Gets a TimeSpan representing the duration of the resource associated with the event.

ResourceType

Gets the resource type of the media download request.

ResourceUri

Gets the resource URI of the media download request.

Result

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

Methods

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.

Applies to