'**SUMMARY**
Skip n number of frames.
Available for only video sources.
**PARAMETERS**
n - number of frames to be skipped.
**RETURNS**
None
**EXAMPLES**
>>> cam = VirtualCamera("filename.avi", "video", 120)
>>> i=0
>>> while i<60:
... cam.getImage().show()
... i+=1
>>> cam.skipFrames(100)
>>> cam.getImage().show()'

def skipFrames(self, n):

    if (self.sourcetype == 'video'):
        number_frame = int(cv.GetCaptureProperty(self.capture, cv.CV_CAP_PROP_POS_FRAMES))
        cv.SetCaptureProperty(self.capture, cv.CV_CAP_PROP_POS_FRAMES, ((number_frame + n) - 1))
    elif (self.sourcetype == 'imageset'):
        self.counter = ((self.counter + n) % len(self.source))
    else:
        self.counter = (self.counter + n)
