internal PlayingOrchestrateResult(INiconicoVideoSessionProvider vss, INiconicoCommentSessionProvider <VideoComment> cs, INicoVideoDetails videoDetails) { IsSuccess = vss != null; VideoSessionProvider = vss; CommentSessionProvider = cs; VideoDetails = videoDetails; }
public void UpdatePlayingVideo(INiconicoVideoSessionProvider videoSessionProvider) { ClearCurrentSession(); _niconicoVideoSessionProvider = videoSessionProvider; PlayingVideoId = videoSessionProvider.ContentId; RaisePropertyChanged(nameof(AvailableQualities)); }
public void ClearCurrentSession() { _currentSession?.Dispose(); _currentSession = null; _niconicoVideoSessionProvider = null; _currentQuality = null; RaisePropertyChanged(nameof(AvailableQualities)); PlayingVideoId = null; NowPlayingWithDmcVideo = false; IsPlayWithCache.Value = false; }