MediaPlayer MarkerReached

2 posts, 0 answers
  1. Manuel
    Manuel avatar
    61 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post


    In MediaElement exists MarkerReached event. I want to know if exist some similar in MediaPlayer?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 12 Jan 2012 Link to this post

    Hi Manuel,

    The RadMediaPlayer control is basically a wrapper around the Silverlight MediaElement control. This is why you can handle all MediaElement events. Once the MediaPlayer opens the media you can attach an event handler for the MarkerReached event:
    <telerik:RadMediaPlayer x:Name="myMediaPlayer" MediaOpened="myMediaPlayer_MediaOpened">
        <telerik:RadMediaItem Source="" VideoStretch="None" />

    private void myMediaPlayer_MediaOpened(object sender, Telerik.Windows.RadRoutedEventArgs e)
        (sender as RadMediaPlayer).MediaElement.MarkerReached += new TimelineMarkerRoutedEventHandler(MediaElement_MarkerReached);
    void MediaElement_MarkerReached(object sender, TimelineMarkerRoutedEventArgs e)

    Please give this a try and let me know if it works for you.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top