Esempio n. 1
0
        public Downloader(SiteConnection pConnection, VideoSource pVideoSource, DateTime pStart, DateTime pEnd, int pInterval, string pOutPath)
        {
            mConnection = pConnection;

            mInterval = pInterval;
            mEnd      = pEnd;

            mOutPath = pOutPath;

            mPlayback = pConnection.PlaybackManager;
            mPlayback.SetVideoCallback(this, 0);
            mPlayback.AddVideoSource(pVideoSource);

            mFrameTime = pStart;

            do
            {
                mPlayback.Locate(mFrameTime);

                mFrameTime = mFrameTime.AddSeconds(mInterval);
            } while (mFrameTime.CompareTo(mEnd) < 0);

            mConnection.Disconnect();
            mConnection = null;
        }