예제 #1
0
        public override void LoadKVA(string path)
        {
            view.StopPlaying();

            MetadataSerializer s = new MetadataSerializer();

            s.Load(frameServer.Metadata, path, true);
        }
예제 #2
0
        public void Recover(Guid id)
        {
            DeleteTempDirectory();
            SetupTempDirectory(id);
            string autosaveFile = Path.Combine(tempFolder, "autosave.kva");

            if (File.Exists(autosaveFile))
            {
                MetadataSerializer s = new MetadataSerializer();
                s.Load(this, autosaveFile, true);
            }
        }
예제 #3
0
        public override void LoadKVA(string path)
        {
            if (!File.Exists(path))
            {
                return;
            }

            MetadataSerializer s = new MetadataSerializer();

            s.Load(metadata, path, true);

            if (metadata.Count > 1)
            {
                metadata.Keyframes.RemoveRange(1, metadata.Keyframes.Count - 1);
            }
        }
예제 #4
0
        public Metadata(string kvaString, VideoInfo info, HistoryStack historyStack, TimeCodeBuilder timecodeBuilder, ClosestFrameDisplayer closestFrameDisplayer)
            : this(historyStack, timecodeBuilder)
        {
            // This should reflect what we do in FrameServerPlayer.SetupMetadata
            imageSize    = info.ReferenceSize;
            userInterval = info.FrameIntervalMilliseconds;
            averageTimeStampsPerFrame  = info.AverageTimeStampsPerFrame;
            averageTimeStampsPerSecond = info.AverageTimeStampsPerSeconds;
            calibrationHelper.CaptureFramesPerSecond = info.FramesPerSeconds;
            firstTimeStamp = info.FirstTimeStamp;

            fullPath = info.FilePath;

            MetadataSerializer serializer = new MetadataSerializer();

            serializer.Load(this, kvaString, false);
        }