-api-id | -api-type |
---|---|
E:Windows.Media.Core.MediaSourceAppServiceConnection.InitializeMediaStreamSourceRequested |
winrt event |
Raised by the system to request the initialization of a new MediaStreamSource.
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.