Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.49 KB

mediasourceappserviceconnection_initializemediastreamsourcerequested.md

File metadata and controls

24 lines (15 loc) · 1.49 KB
-api-id -api-type
E:Windows.Media.Core.MediaSourceAppServiceConnection.InitializeMediaStreamSourceRequested
winrt event

Windows.Media.Core.MediaSourceAppServiceConnection.InitializeMediaStreamSourceRequested

-description

Raised by the system to request the initialization of a new MediaStreamSource.

-remarks

After registering a handler for the InitializeMediaStreamSourceRequestedEventArgs, call Start to notify the system that the app service is ready to handle requests.

With the InitializeMediaStreamSourceRequestedEventArgs object, the system passes an IRandomAccessStream and an a uninitialized MediaStreamSource object into the InitializeMediaStreamSourceRequested event handler. The app service should parse the IRandomAccessStream to create an IMediaStreamDescriptor. If the requested stream format is supported, then the app service can initialize the MediaStreamSource and begin providing samples.

-see-also

-examples