InitializeMediaStreamSourceRequestedEventArgs
InitializeMediaStreamSourceRequestedEventArgs
InitializeMediaStreamSourceRequestedEventArgs
InitializeMediaStreamSourceRequestedEventArgs
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Provides data for the InitializeMediaStreamSourceRequested event.
public : sealed class InitializeMediaStreamSourceRequestedEventArgs : IInitializeMediaStreamSourceRequestedEventArgspublic sealed class InitializeMediaStreamSourceRequestedEventArgs : IInitializeMediaStreamSourceRequestedEventArgsPublic NotInheritable Class InitializeMediaStreamSourceRequestedEventArgs Implements IInitializeMediaStreamSourceRequestedEventArgs// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Remarks
Get an instance of this class by registering a handler for the InitializeMediaStreamSourceRequested event.
Properties
RandomAccessStream RandomAccessStream RandomAccessStream RandomAccessStream
Prerelease. Gets the IRandomAccessStream associated with the media stream source request.
public : IRandomAccessStream RandomAccessStream { get; }public IRandomAccessStream RandomAccessStream { get; }Public ReadOnly Property RandomAccessStream As IRandomAccessStream// You can use this property in JavaScript.
The IRandomAccessStream associated with the media stream source request.
Remarks
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 provided in the event args and begin providing samples.
Source Source Source Source
Prerelease. Gets the uninitialized MediaStreamSource object that the app service should initialize and use to provide samples to the requesting app.
public : MediaStreamSource Source { get; }public MediaStreamSource Source { get; }Public ReadOnly Property Source As MediaStreamSource// You can use this property in JavaScript.
The uninitialized MediaStreamSource object.
Methods
GetDeferral() GetDeferral() GetDeferral() GetDeferral()
Prerelease. Gets a Deferral object that instructs the system to wait for the app service to complete media source stream initialization before continuing processing the request.
public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// You can use this method in JavaScript.
Remarks
You must request a deferral if your stream source initialization perfoms any asynchronous actions. Call Complete when intitialization is complete to notify the system to continue processing the request.