MediaStreamSource.ReportSwitchMediaStreamCompleted Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Protected Sub ReportSwitchMediaStreamCompleted ( _ mediaStreamDescription As MediaStreamDescription _ )
Parameters
- mediaStreamDescription
- Type: System.Windows.Media.MediaStreamDescription
The description of the stream actually switched to. This should be the same stream as what was requested by SwitchMediaStreamAsync.