Beispiel #1
0
        public static PeriodEvent startPeriodEvent(string sid, int videoTime, PeriodEventType type)
        {
            CustomTime startTime = new CustomTime()
            {
                absTS = CustomTime.ConvertDateTimeToTimeStamp(DateTime.Now), videoTS = videoTime
            };
            PeriodEvent e = null;

            switch (type)
            {
            case PeriodEventType.FAST_FORWARD:
                e = new FastForwardEvent(sid, startTime, null);
                break;

            case PeriodEventType.REWIND:
                e = new RewindEvent(sid, startTime, null);
                break;

            case PeriodEventType.FORWARD_SKIP:
                e = new ForwardSkipEvent(sid, startTime, null);
                break;

            case PeriodEventType.REVERSE_SKIP:
                e = new ReverseSkipEvent(sid, startTime, null);
                break;

            case PeriodEventType.UNDETERMINED:
                e = new UndeterminedSkipEvent(sid, startTime, null);
                break;

            default:
                return(null);
            }
            return(e);
        }
 public ForwardSkipEvent(UndeterminedSkipEvent e)
 {
     this.mType      = PeriodEventType.FORWARD_SKIP;
     this.mStartTS   = e.StartTS;
     this.mSessionID = e.SessionID;
 }
Beispiel #3
0
 public ReverseSkipEvent(UndeterminedSkipEvent e)
 {
     this.mType      = PeriodEventType.REVERSE_SKIP;
     this.mStartTS   = e.StartTS;
     this.mSessionID = e.SessionID;
 }