Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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;
         }
     }
 }
 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;
     }
 }
 private void MediaPlayer_OnMediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     // TODO: Replace with something nicer | It may be bug in Windows.Interactivity
     ((EmbededVideoPlaybackViewModel)DataContext).Next();
 }
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     if (!MediaPlayer.IsLooping && AutoAdvance)
     {
         var index = CurrentPlaylistItemIndex;
         index++;
         if (index < Playlist.Count)
         {
             CurrentPlaylistItemIndex = index;
             e.Handled = true;
         }
     }
 }
 void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
   _clocktimer.Stop();
 }
Ejemplo n.º 8
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     EvaluteTrackingEvents();
 }
 void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
   if (lvTags.Items.Count == 0)
   {
     notagsStatus.Visibility = Visibility.Collapsed;
     noplaybackStatus.Visibility = Visibility.Visible;
   }
   
 
 }
Ejemplo n.º 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();
 }
 private void ThePlayerMediaEnded(object sender, MediaPlayerActionEventArgs e)
 {
     if (!_seeking)
         Messenger.Default.Send(new NotificationMessage(Constants.Messages.SendVideoTimeToServerMsg));
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 13
0
 void MediaPlayer_MediaEnded(object sender, MediaPlayerActionEventArgs e) {
     if(req != null) {
         req.RequestRelease();
         req = null; } }
        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");
            }

        }
    void _player_MediaEnded(object sender, MediaPlayerActionEventArgs e)
    {

    }
Ejemplo n.º 16
0
 void PlayerOnMediaEnded(object sender, MediaPlayerActionEventArgs mediaPlayerActionEventArgs)
 {
     Debug.WriteLine("StreamingMediaPlugin MediaEnded " + _playbackSession);
 }