MediaStreamSourceClosedRequest MediaStreamSourceClosedRequest MediaStreamSourceClosedRequest MediaStreamSourceClosedRequest Class


Represents an object to be used by the MediaStreamSource.closed event to provide information to the application.

public : sealed class MediaStreamSourceClosedRequest : IMediaStreamSourceClosedRequest
public sealed class MediaStreamSourceClosedRequest : IMediaStreamSourceClosedRequest
Public NotInheritable Class MediaStreamSourceClosedRequest Implements IMediaStreamSourceClosedRequest
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The Reason property provides information regrading why the MediaStreamSource was closed.

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


Reason Reason Reason Reason

Gets the reason why the media stream source was closed.

public : MediaStreamSourceClosedReason Reason { get; }
public MediaStreamSourceClosedReason Reason { get; }
Public ReadOnly Property Reason As MediaStreamSourceClosedReason
var mediaStreamSourceClosedReason = mediaStreamSourceClosedRequest.reason;

See Also