共用方式為


MediaStreamSource.ReportSwitchMediaStreamCompleted Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Developers call this method in response to SwitchMediaStreamAsync to inform the MediaElement that the MediaStreamSource has completed the requested stream switch and that samples returned will now be from the requested stream instead of the original stream. Note, that this is meant for the multiple audio stream case, for example language tracks, and not the adaptive streaming case.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Protected Sub ReportSwitchMediaStreamCompleted ( _
    mediaStreamDescription As MediaStreamDescription _
)
protected void ReportSwitchMediaStreamCompleted(
    MediaStreamDescription mediaStreamDescription
)

Parameters

Remarks

This method is meant for the multiple audio stream case, for example language tracks, and not the adaptive streaming case.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

 This method is not implemented in Silverlight for Windows Phone.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.