Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 2.03 KB

mediastreamsource_starting.md

File metadata and controls

27 lines (18 loc) · 2.03 KB
-api-id -api-type
E:Windows.Media.Core.MediaStreamSource.Starting
winrt event

Windows.Media.Core.MediaStreamSource.Starting

-description

Occurs when the MediaStreamSource is ready to start requesting MediaStreamSample objects. The event can specify a position in the media time-line from which the first MediaStreamSample should be delivered.

-remarks

The MediaStreamSource raises this event before it starts requesting MediaStreamSamples for the first time. It also raises the event when it resumes requesting MediaStreamSamples after a Paused event has occurred.

Upon receiving this event, the application must invoke the SetActualStartPosition method on the MediaStreamSourceStartingRequest object to specify the actual position in the time-line from which MediaStreamSample objects will be retrieved.

This event cancels any SampleRequested events the application has not delivered the requested MediaStreamSample for. However, application must still invoke the Complete method on the MediaStreamSourceSampleRequestDeferral object for any previous SampleRequested events.

Applications are only required to have a handler for the Starting event if MediaStreamSource.CanSeek is set to true and they support seeking.

-examples

-see-also

MediaStreamSourceStartingEventArgs