Windows Store app's MediaElement won't recognise markers embedded in WMA file RRS feed

  • Question

  • I have a .wma audio file embedded some marker data with Expression Encoder 4. According to Microsoft's official document, the MarkerReached event should fire at the right time when this audio file is played in a MediaElement. However, it seems that the MediaElement cannot recognise the marker metadata in the audio. The event won't fire and the Markers property of the MediaElement has no child in it when the audio is playing.

    I'm sure the audio does contain the marker data and it is successfully loaded. So does anyone know where the problem is? Many thanks in advance!

    Xaml here:

    <MediaElement x:Name="MaElement" Source="Assets/TypeHeroTheme.wma" MarkerReached="MediaElement_OnMarkerReached"/>

    The event handler:

    private void MediaElement_OnMarkerReached(object sender, TimelineMarkerRoutedEventArgs e)
            //do something

    Wednesday, February 19, 2014 6:41 AM