コード例 #1
0
 private void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     foreach (var trackingEvent in TrackingEvents.Where(t => t.PositionPercentage.HasValue && t.PositionPercentage.Value == 1).ToList())
     {
         OnTrackEvent(new PositionEventTrackedEventArgs(trackingEvent, false));
     }
 }
コード例 #2
0
 public static bool Notify(this MediaPlayerActionEventHandler handler, object sender)
 {
     if (handler != null)
     {
         var e = new MediaPlayerActionEventArgs();
         handler(sender, e);
         return(e.Handled);
     }
     else
     {
         return(true);
     }
 }
コード例 #3
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     if (!MediaPlayer.IsLooping && AutoAdvance)
     {
         var index = CurrentPlaylistItemIndex;
         index++;
         if (index < Playlist.Count)
         {
             CurrentPlaylistItemIndex = index;
             e.Handled = true;
         }
     }
 }
コード例 #4
0
 public static bool Notify(this MediaPlayerActionEventHandler handler, object sender)
 {
     if (handler != null)
     {
         var e = new MediaPlayerActionEventArgs();
         handler(sender, e);
         return e.Handled;
     }
     else
     {
         return true;
     }
 }
コード例 #5
0
 private void MediaPlayer_OnMediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     // TODO: Replace with something nicer | It may be bug in Windows.Interactivity
     ((EmbededVideoPlaybackViewModel)DataContext).Next();
 }
コード例 #6
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     if (!MediaPlayer.IsLooping && AutoAdvance)
     {
         var index = CurrentPlaylistItemIndex;
         index++;
         if (index < Playlist.Count)
         {
             CurrentPlaylistItemIndex = index;
             e.Handled = true;
         }
     }
 }
コード例 #7
0
 void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
   _clocktimer.Stop();
 }
コード例 #8
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     EvaluteTrackingEvents();
 }
コード例 #9
0
 void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
   if (lvTags.Items.Count == 0)
   {
     notagsStatus.Visibility = Visibility.Collapsed;
     noplaybackStatus.Visibility = Visibility.Visible;
   }
   
 
 }
コード例 #10
0
 protected void MediaPlayer_OnMediaEnded(object sender, MediaPlayerActionEventArgs eventArgs)
 {
     // TODO: Replace with something nicer | It may be bug in Windows.Interactivity
     ((IVidePlaybackViewModel)DataContext).ClearSource();
     ((IVidePlaybackViewModel)DataContext).Next();
 }
コード例 #11
0
 private void ThePlayerMediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     if (!_seeking)
         Messenger.Default.Send(new NotificationMessage(Constants.Messages.SendVideoTimeToServerMsg));
 }
コード例 #12
0
 void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
   if(lvStreams.Items.Count == 0)
   {
     nometadataStatus.Visibility = Visibility.Collapsed;
     noplaybackStatus.Visibility = Visibility.Visible;
   }
   if (_event_timer.IsEnabled)
     _event_timer.Stop();
 }
コード例 #13
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e) {
     if(req != null) {
         req.RequestRelease();
         req = null; } }
コード例 #14
0
        private void mediaElement_MediaEnded(object sender, MediaPlayerActionEventArgs e)
        {
            try
            {
                //Uri source = mediaElement.Source;
                //mediaElement.Source = null;
                //mediaElement.AutoLoad = true;
                //mediaElement.Source = source;
                Int32 b = ls1.Items.Count;
                a = ls1.SelectedIndex;
                if (a < b - 1)
                {


                    //  txt1.Text = "a is" + a + "b is" + b.ToString();
                    a = a + 1;
                    ls1.SelectedIndex = a;


                }

                else
                {
                    ls1.SelectedIndex = 0;

                }
                ToastNotification();
                updatetile();
            }
            catch
            {
                ErrorCorrecting("016");
            }

        }
コード例 #15
0
    void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
    {

    }
コード例 #16
0
 void PlayerOnMediaEnded(object sender, MediaPlayerActionEventArgs mediaPlayerActionEventArgs)
 {
     Debug.WriteLine("StreamingMediaPlugin MediaEnded " + _playbackSession);
 }