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); }
public override void Handle(StartVideoPlaybackMessage message) { if (!message.FullScreen) { base.Handle(message); } }
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); }
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); }
public void Handle(StartVideoPlaybackMessage message) { throw new NotImplementedException(); }