Beispiel #1
0
 public virtual void Handle(StartVideoPlaybackMessage message)
 {
     Item      = message.Item;
     StartTime = TimeSpan.FromSeconds(message.StartTime).Negate();
     EndTime   = TimeSpan.FromSeconds(message.EndTime);
     Source    = SubsonicService.GetUriForVideoStartingAt(message.Item.Uri, message.StartTime);
 }
Beispiel #2
0
 public override void Handle(StartVideoPlaybackMessage message)
 {
     if (!message.FullScreen)
     {
         base.Handle(message);
     }
 }
Beispiel #3
0
 public override void Handle(StartVideoPlaybackMessage message)
 {
     if (message.FullScreen)
     {
         if (IsActive)
         {
             base.Handle(message);
         }
         else
         {
             NavigationService.NavigateToViewModel <FullScreenVideoPlaybackViewModel>(message);
         }
     }
 }
        public void Handle(StartVideoPlaybackMessage message)
        {
            if (!message.FullScreen)
            {
                State = PlaybackViewModelStateEnum.Video;
                if (!IsActive)
                {
                    NavigationService.NavigateToViewModel <PlaybackViewModel>();
                }
            }

            NotifyOfPropertyChange(() => ActiveItem);

            this.ShowToast(message.Item);
        }
Beispiel #5
0
        public virtual StartVideoPlaybackMessage GetStartVideoPlaybackMessageWithCurrentPosition(MediaPlayer mediaPlayer)
        {
            TimeSpan startTime, endTime;

            if (mediaPlayer.TimeRemaining != TimeSpan.Zero)
            {
                startTime = EndTime - mediaPlayer.TimeRemaining;
                endTime   = mediaPlayer.TimeRemaining;
            }
            else
            {
                startTime = mediaPlayer.StartTime;
                endTime   = mediaPlayer.EndTime;
            }

            var videoPlaybackMessage = new StartVideoPlaybackMessage(Item)
            {
                StartTime = startTime.TotalSeconds,
                EndTime   = endTime.TotalSeconds
            };

            return(videoPlaybackMessage);
        }
Beispiel #6
0
 public void Handle(StartVideoPlaybackMessage message)
 {
     throw new NotImplementedException();
 }