EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

MediaStreamSource.Closed | closed event

Applies to Windows and Windows Phone

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

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

 

 

Afficher:
© 2014 Microsoft