Events Overview

This topic covers the specific events exposed by the RadMediaPlayer control.

  • ChapterReached - occurs when a chapter is reached. The ChapterReached event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • A RadRoutedEventArgs object.
  • CurrentStateChanged - occurs when the state of the RadMediaPlayer.MediaElement state is changed. The CurrentStateChanged event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • A RadRoutedEventArgs object.
  • DownloadProgressChanged - occurs when the download progress of the RadMediaPlayer.MediaElement is changed. The DownloadProgressChanged event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • A RadRoutedEventArgs object.
  • FullScreenChanged - occurs when the FullScreen state of the RadMediaPlayer is changed. The FullScreenChanged event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • An EventArgs object.
  • MediaEnded - occurs when the RadMediaPlayer.MediaElement stops playing. The MediaEnded event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • A RadRoutedEventArgs object.
  • MediaOpened - occurs when the RadMediaPlayer.MediaElement starts playing. The MediaOpened event handler receives two arguments:

    • The sender argument contains the RadMediaPlayer. This argument is of type object, but can be cast to the RadMediaPlayer type.
    • A RadRoutedEventArgs object.
In this article