Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MediaPlayer > RadMediaPlayer Play Button

Not answered RadMediaPlayer Play Button

Feed from this thread
  • C avatar

    Posted on Dec 14, 2011 (permalink)

    Hi Is it possible to catch the event when the play button is pressed on the RadMediaPlayer ?

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Dec 19, 2011 (permalink)

    Hello C,

    The RadMediaPlayer MediaOpened event occurs as soon as the media stream that has to be played is validated and opened, and the file headers have been read. This is why you can handle this event and then you can attach a handler to the RadMediaPlayer.MediaElement.CurrentStateChanged event. In this handler you can track the MediaElement.CurrentState changes.
    private void RadMediaPlayer_MediaOpened(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
        (sender as RadMediaPlayer).MediaElement.CurrentStateChanged += new RoutedEventHandler(MediaElement_CurrentStateChanged);
    }
     
    void MediaElement_CurrentStateChanged(object sender, RoutedEventArgs e)
    {
        var state = (sender as MediaElement).CurrentState;
    }

    I hope this information will help you.

    Regards,
    Tina Stancheva
    the Telerik team

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

    Reply

  • C avatar

    Posted on Dec 19, 2011 (permalink)

    Hi ,
    Thanks For Your Reply.
    Thats not really what i was looking for but it may work.
    I have gone another route though so will not be trying to implement it.
    Thanks All the Same

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MediaPlayer > RadMediaPlayer Play Button
Related resources for "RadMediaPlayer Play Button"

Silverlight MediaPlayer Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]