private void LoadStreamConfig(string path) { currentStreamConfig = StreamConfigManager.LoadConfig(path); if (currentStreamConfig == null) { return; } startingTime = Math.Max(currentStreamConfig.PlaybackTime - PLAYBACK_TIME_TRAVEL_AMOUNT, 0); bufferedPlaybackTime = startingTime; SetPlaybackTime(bufferedPlaybackTime); }
private void SaveCurrentConfig() { if (!IsVideoLoaded()) { return; } if (currentStreamConfig == null) { currentStreamConfig = new StreamConfig(); } currentStreamConfig.PlaybackTime = GetPlaybackTime(); StreamConfigManager.SaveConfig(currentStreamPath, currentStreamConfig); }