示例#1
0
        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);
        }
示例#2
0
        private void SaveCurrentConfig()
        {
            if (!IsVideoLoaded())
            {
                return;
            }

            if (currentStreamConfig == null)
            {
                currentStreamConfig = new StreamConfig();
            }

            currentStreamConfig.PlaybackTime = GetPlaybackTime();
            StreamConfigManager.SaveConfig(currentStreamPath, currentStreamConfig);
        }