Udostępnij za pośrednictwem


MediaStreamSourceStartingRequest Class

Definition

Represents a request from the MediaStreamSource.Starting event for the application to start accumulating MediaStreamSample objects from a specific position in the media.

public ref class MediaStreamSourceStartingRequest 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 MediaStreamSourceStartingRequest 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 MediaStreamSourceStartingRequest
Public NotInheritable Class MediaStreamSourceStartingRequest
Inheritance
Object Platform::Object IInspectable MediaStreamSourceStartingRequest
Attributes

Windows requirements

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

Remarks

See the MediaStreamSource Sample for an example of using Media Stream Source in a UWP app.

Properties

StartPosition

Specifies a reference to a TimeSpan object which represents a time position in the media time-line from which the application should return MediaStreamSample objects.

Methods

GetDeferral()

Defers completing the MediaStreamSource.Starting event.

SetActualStartPosition(TimeSpan)

Specifies the starting position in the media time-line for subsequent MediaStreamSamples that will be delivered to the MediaStreamSource.

Applies to

See also