Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaStreamSource.Closed | closed event

Occurs when the MediaStreamSource is shutting down.

Syntax


function onClosed(eventArgs) { /* Your code */ }
 
// addEventListener syntax
mediaStreamSource.addEventListener("closed", onClosed);
mediaStreamSource.removeEventListener("closed", onClosed);
 
- or -

mediaStreamSource.onclosed = onClosed;


Event information

Delegate TypedEventHandler<MediaStreamSource, MediaStreamSourceClosedEventArgs>

Remarks

If the MediaStreamSource is shutting down due to an error, the Reason property on the MediaStreamSourceClosedRequest object, which can be obtained from MediaStreamSourceClosedEventArgs, provides information about the nature of the error.

Upon receiving this event, the application should remove all of its event handlers from the MediaStreamSource object, and refrain from further use of this instance of the MediaStreamSource object.

Applications are not required to have a handler for this event.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.winmd

See also

MediaStreamSource
MediaStreamSourceClosedEventArgs

 

 

Show:
© 2015 Microsoft