示例#1
0
        private bool NotAtBlockbusterLogo(VHSMachine vhsMachine)
        {
            var currentPic = vhsMachine.CurrentImage;

            // examine the current pic to see if it is the blockbuster logo
            return(true);
        }
示例#2
0
        public void SeekMovieStart(VHSMachine machine)
        {
            // rewind to the beginning
            var hasRewoundToBeginning = false;

            do
            {
                hasRewoundToBeginning = machine.Rewind(TimeSpan.FromMinutes(1));
            } while (!hasRewoundToBeginning);

            // start playing the video
            machine.Play();

            // fastforward bit by bit to find blockbusters logo
            while (!NotAtBlockbusterLogo(machine))
            {
                machine.FastForward(TimeSpan.FromSeconds(5));
            }

            // Stop the machine!
            machine.Stop();
        }