public override void Initialize()
 {
     _mediaPlayer = (MediaElement)VisualTreeHelper.GetChild((DependencyObject)Application.Current.MainWindow.Content, 0);
     _mediaPlayer.UpdateLayout();
     _mediaPlayer.MediaEnded += MediaPlayerOnMediaEnded;
     _mediaPlayer.MediaFailed += MediaPlayerOnMediaFailed;
     _mediaPlayer.MediaOpened += MediaPlayerOnMediaOpened;
 }