SmoothStreamingMediaElement.MediaOpened Event

Occurs when the media stream has been validated and opened and the file headers have been read.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

Syntax

'Declaration

Public Event MediaOpened As RoutedEventHandler
'Usage

Dim instance As SmoothStreamingMediaElement
Dim handler As RoutedEventHandler

AddHandler instance.MediaOpened, handler
public event RoutedEventHandler MediaOpened
public:
 event RoutedEventHandler^ MediaOpened {
    void add (RoutedEventHandler^ value);
    void remove (RoutedEventHandler^ value);
}
member MediaOpened : <RoutedEventHandler,
    RoutedEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

Applications should parse the manifest for markers during the MediaOpened event, but not earlier. Specifically, applications should not parse the manifest during the ManifestReady event, because all markers set before MediaOpened are cleared in Silverlight when the MediaOpened event occurs.

For more information, see Events and Timeline Markers and Events.

Version Information

Silverlight

Supported in: 5

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

See Also

Reference

SmoothStreamingMediaElement Class

Microsoft.Web.Media.SmoothStreaming Namespace