コード例 #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);
 }
コード例 #2
0
 public override void Handle(StartVideoPlaybackMessage message)
 {
     if (!message.FullScreen)
     {
         base.Handle(message);
     }
 }
コード例 #3
0
 public override void Handle(StartVideoPlaybackMessage message)
 {
     if (message.FullScreen)
     {
         if (IsActive)
         {
             base.Handle(message);
         }
         else
         {
             NavigationService.NavigateToViewModel <FullScreenVideoPlaybackViewModel>(message);
         }
     }
 }
コード例 #4
0
        public void Handle(StartVideoPlaybackMessage message)
        {
            if (!message.FullScreen)
            {
                State = PlaybackViewModelStateEnum.Video;
                if (!IsActive)
                {
                    NavigationService.NavigateToViewModel <PlaybackViewModel>();
                }
            }

            NotifyOfPropertyChange(() => ActiveItem);

            this.ShowToast(message.Item);
        }
コード例 #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);
        }
コード例 #6
0
 public void Handle(StartVideoPlaybackMessage message)
 {
     throw new NotImplementedException();
 }